Commit Graph

17475 Commits

Author SHA1 Message Date
Felix S. Klock II
4dd0fa6876 Make build products depend on their target directories.
This is an attempt to address Issue #3326 by adding [*order-only*][1]
prerequsites of each build product on the directory where it is to go.
It is important that the prerequisites be order-only, since the
timestamp on a parent directory is not relevant to whether a product
is out of date; the parent directory merely needs to exist.

(This use case of generating target directories was provided as an
[example][2] of how order-only prequisites are used.)

[1]: http://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html

[2]: http://www.kolpackov.net/pipermail/notes/2004-January/000001.html
2013-05-03 18:53:47 +02:00
bors
326d9661b7 auto merge of #6177 : gifnksm/rust/iter-chain, r=thestinger
`T: Iterator<A>` and `U: Iterator<A>` should be able to `chain` whether `T` and `U` are same or not.
2013-05-02 06:15:37 -07:00
bors
d1f7220219 auto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silently-skip-erroneous-tests, r=pnkfelix
...e.

Fixes #4391.
2013-05-02 00:15:46 -07:00
Felix S. Klock II
9862cf703b More cases of [cfg(test)] instead of [test]. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
a636f5160a More cases of [cfg(test)] instead of [test]. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
46c2b5b045 Lets see if changing span_fatal to span_err gets me further through make check. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
880e300ed7 mod items need to be marked with cfg(test) not test. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
c14aa7eba8 mod items need to be marked with cfg(test) not test. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
5f1a90ebe7 Issue 4391: rustc should not silently skip tests with erroneous signature. 2013-05-02 08:55:08 +02:00
bors
5458d7dddd auto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn
This has happened to two people trying to get Rust working on other platforms. Since it won't compile either way, make a nicer message for it (which will also point them straight to the correct file).
2013-05-01 23:09:36 -07:00
bors
b42ea7f9ef auto merge of #6174 : sanxiyn/rust/static-string, r=brson 2013-05-01 22:06:37 -07:00
bors
efcabc41e4 auto merge of #6151 : bjz/rust/local-variable-cleanup, r=brson
I have noticed these comments scattered across the codebase. They appear to be vestigial Emacs formatting settings and they don't appear in newer files. For the sake of consistency it's probably best to remove them.
2013-05-01 21:00:39 -07:00
Brendan Zabarauskas
e596128bd8 Remove 'Local Variable' comments 2013-05-02 13:22:04 +10:00
bors
a64aa28efe auto merge of #6173 : sammykim/rust/doc-vec, r=yichoi
I think whether vector element is mutable is decided by whether vector reference is mutable.
2013-05-01 19:54:36 -07:00
gifnksm
8a28970ed3 libcore: Make ChainIterator take two different-typed Iterators. 2013-05-02 11:10:13 +09:00
James Miller
1bd318421e Add error if RED_ZONE_SIZE doesn't get defined 2013-05-02 14:04:43 +12:00
bors
b4bdc3f500 auto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon
implement `Clone` using `deriving(Clone)`.
2013-05-01 18:45:39 -07:00
Seo Sanghyeon
4294aed01b Use static strings 2013-05-02 10:36:30 +09:00
Seo Sanghyeon
0c34cab3db Take string slices 2013-05-02 10:32:13 +09:00
bors
d3e7c746dd auto merge of #6162 : graydon/rust/random-retry, r=graydon
Sample from the normal and exponential distributions using the Ziggurat
algorithm.
2013-05-01 17:45:37 -07:00
bors
941154721e auto merge of #6161 : graydon/rust/glob-retry, r=graydon
This is a retry of pull #5832
2013-05-01 16:51:45 -07:00
Huon Wilson
1eb5efc5e2 libcore: add N(0,1) and Exp(1) distributions to core::rand.
Sample from the normal and exponential distributions using the Ziggurat
algorithm.
2013-05-01 16:51:45 -07:00
Jesse Luehrs
ed81e3353e glob_t should be public on all platforms 2013-05-01 16:49:58 -07:00
Jesse Luehrs
685baed34e add a higher level glob() function to os
this could probably use expansion - it just uses all of the default
options, which is usually what we want, but not always. maybe add a
separate function that takes more options?
2013-05-01 16:49:58 -07:00
Jesse Luehrs
058346219a libc bindings for glob.h
only tested on linux/x86_64, but i got the values for other platforms
from their system header files.

no bindings for win32, because win32 doesn't include glob.h.

also, glob() takes a callback for error handling, but i'm just making
this a *c_void for now, since i don't know how to represent c calling
back into rust (if that's even currently possible).
2013-05-01 16:49:58 -07:00
gifnksm
046a285a4b libstd: impl Clone for BigUint/BigInt and replace copy with .clone() 2013-05-02 07:17:29 +09:00
Graydon Hoare
08dd625d45 compiletest: stop ignoring all tests. 2013-05-01 14:58:21 -07:00
bors
55fbc47af1 auto merge of #6148 : erickt/rust/remove-drop, r=pcwalton
The drop block has been deprecated for quite some time. This patch series removes support for parsing it and all the related machinery that made drop work.

As a side feature of all this, I also added the ability to annote fields in structs. This allows comments to be properly associated with an individual field. However, I didn't update `rustdoc` to integrate these comment blocks into the documentation it generates.
2013-05-01 09:18:59 -07:00
Erick Tryzelaar
7c9d089ee7 pipes: use finally to fix pipes::try_recv 2013-05-01 07:50:13 -07:00
Erick Tryzelaar
e7a3bbd76c rustdoc: Remove a now invalid test 2013-05-01 07:49:58 -07:00
Erick Tryzelaar
e9688fcfe3 remove some warnings 2013-05-01 07:49:41 -07:00
Erick Tryzelaar
5fee32457f syntax: remove parse::token::{dtor,literally_dtor} 2013-05-01 07:49:41 -07:00
Erick Tryzelaar
3e3e2f0025 allow parsing attributes on struct fields 2013-05-01 07:49:41 -07:00
Erick Tryzelaar
c2e1f47955 rustc: remove the rest of drop
Removes:

ast::struct_def::dtor
syntax::ast::ii_dtor
syntax::visit::fk_dtor
syntax::ast_map::node_dtor
syntax:struct_dtor
2013-05-01 07:49:41 -07:00
Erick Tryzelaar
7d6d0029ba syntax: remove parsing destructors 2013-05-01 07:49:41 -07:00
Erick Tryzelaar
5d79f94a2f core: Remove use of deprecated drop 2013-05-01 07:49:40 -07:00
bors
f67239fac3 auto merge of #6147 : bjz/rust/numeric-traits, r=brson
After much discussion on IRC and #4819, we have decided to revert to the old naming of the `/` operator. This does not change its behavior. In making this change, we also have had to rename some of the methods in the `Integer` trait. Here is a list of the methods that have changed:

- `Quot::quot` -> `Div::div`
- `Rem::rem` - stays the same
- `Integer::quot_rem` -> `Integer::div_rem`
- `Integer::div` -> `Integer::div_floor`
- `Integer::modulo` -> `Integer::mod_floor`
- `Integer::div_mod` -> `Integer::div_mod_floor`
2013-05-01 01:51:35 -07:00
bors
bfccfdc780 auto merge of #6144 : catamorphism/rust/mkdir_recursive-breakage, r=thestinger
r? @brson or @thestinger : Added a change_dir_locked function to os, and use it in the
mkdir_recursive tests so that the tests don't clobber each other's
directory changes.
2013-05-01 00:57:35 -07:00
bors
17ca13651a auto merge of #6139 : thestinger/rust/tmp, r=graydon
The `.tmp` files were missed before. I don't think there's a need to use
*.ext instead of just *.
2013-04-30 23:21:36 -07:00
Brendan Zabarauskas
ee26c7c433 Revert rename of Div to Quot 2013-05-01 15:40:05 +10:00
bors
db2451477b auto merge of #6131 : thestinger/rust/new_iter, r=graydon 2013-04-30 22:24:35 -07:00
bors
89f419370c auto merge of #6115 : jbclements/rust/test-case-fixes, r=jbclements
In developing the grammar a few weeks ago, I fixed up a bunch of test cases that had rotted to the point that they didn't parse.
2013-04-30 21:12:36 -07:00
bors
c1ea72d88f auto merge of #6113 : brson/rust/task-drop, r=graydon 2013-04-30 20:09:36 -07:00
bors
cb527bff09 auto merge of #6105 : Aatch/rust/linker-improv, r=pcwalton
Adds two extra flags: `--linker` which takes extra flags to pass to the linker, can be used multiple times and `--print-link-args` which prints out linker arguments. Currently `--print-link-args` needs execution to get past translation to get the `LinkMeta` data.

I haven't done tests or updated any extra documentation yet, so this pull request is currently here for review.
2013-04-30 18:36:45 -07:00
Tim Chevalier
782e06e0e3 core/std: Fix race condition in os::mkdir_recursive tests
Added a change_dir_locked function to os, and use it in the
mkdir_recursive tests so that the tests don't clobber each other's
directory changes.
2013-04-30 17:58:24 -07:00
bors
7a857673ff auto merge of #6103 : catamorphism/rust/nonfatal-errors, r=catamorphism
r? @nikomatsakis typeck::check::_match wasn't suppressing derived errors properly.
Fixed it. (This will fix #5100)
2013-04-30 17:39:36 -07:00
John Clements
ab1d8ead91 fixed pattern, moved test to compile-fail 2013-04-30 16:31:56 -07:00
John Clements
fc661079a4 fixed up syntax 2013-04-30 16:31:56 -07:00
John Clements
c75b7630bc renamed issue-2185 to issue-3429 2013-04-30 16:31:55 -07:00
John Clements
89bb02adf9 typestate is not planned for upcoming versions of rust.... 2013-04-30 16:31:55 -07:00