]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agolibrustc: Add argument to allow choosing "linker"
Luqman Aden [Thu, 2 May 2013 21:12:47 +0000 (14:12 -0700)]
librustc: Add argument to allow choosing "linker"

11 years agoauto merge of #6213 : kud1ing/rust/patch-1, r=graydon
bors [Fri, 3 May 2013 17:21:37 +0000 (10:21 -0700)]
auto merge of #6213 : kud1ing/rust/patch-1, r=graydon

...re/index.html

11 years agoauto merge of #6046 : brson/rust/io, r=graydon
bors [Fri, 3 May 2013 16:09:40 +0000 (09:09 -0700)]
auto merge of #6046 : brson/rust/io, r=graydon

r? @pcwalton

Sorry this is so big, and sorry the first commit is just titled 'wip'.

Some interesting bits

* [LocalServices](https://github.com/brson/rust/commit/f9069baa70ea78117f2087fe6e359fb2ea0ae16a) - This is the set of runtime capabilities that *all* Rust code should expect access to, including the local heap, GC, logging, unwinding.
* [impl Reader, etc. for Option](https://github.com/brson/rust/commit/5fbb0949a53a6ac51c6d9b187ef4c464e52ae536) - Constructors like `File::open` return Option<FileStream>. This lets you write I/O code without ever unwrapping an option.

This series adds a lot of [documentation](https://github.com/brson/rust/blob/io/src/libcore/rt/io/mod.rs#L11) to `core::rt::io`.

11 years agoauto merge of #6185 : gifnksm/rust/prelude-from_str, r=graydon
bors [Fri, 3 May 2013 15:15:38 +0000 (08:15 -0700)]
auto merge of #6185 : gifnksm/rust/prelude-from_str, r=graydon

`core::prelude`  re-exports `core::to_str::ToStr`, but doesn't re-export `core::from_str::FromStr`.
That is inconsistent.

11 years agoauto merge of #6207 : sanxiyn/rust/tc-big, r=thestinger
bors [Fri, 3 May 2013 08:36:37 +0000 (01:36 -0700)]
auto merge of #6207 : sanxiyn/rust/tc-big, r=thestinger

11 years agoauto merge of #6204 : pcwalton/rust/uninhabited-enum-cast, r=catamorphism
bors [Fri, 3 May 2013 07:12:37 +0000 (00:12 -0700)]
auto merge of #6204 : pcwalton/rust/uninhabited-enum-cast, r=catamorphism

r? @catamorphism

11 years agoRemove extra `#[cfg(stage0)]`
gifnksm [Fri, 3 May 2013 06:57:05 +0000 (15:57 +0900)]
Remove extra `#[cfg(stage0)]`

11 years agoAdd a brief description to show up in http://static.rust-lang.org/doc/core/index...
kud1ing [Fri, 3 May 2013 06:20:01 +0000 (09:20 +0300)]
Add a brief description to show up in http://static.rust-lang.org/doc/core/index.html

11 years agoauto merge of #6212 : brson/rust/xfail-flatpipes, r=brson
bors [Fri, 3 May 2013 05:51:38 +0000 (22:51 -0700)]
auto merge of #6212 : brson/rust/xfail-flatpipes, r=brson

This is preventing a snapshot. Filed #6211

11 years agostd: xfail test_serializing_pipes
Brian Anderson [Fri, 3 May 2013 05:18:16 +0000 (22:18 -0700)]
std: xfail test_serializing_pipes

11 years agoauto merge of #6206 : sanxiyn/rust/mach-sty, r=thestinger
bors [Fri, 3 May 2013 04:42:36 +0000 (21:42 -0700)]
auto merge of #6206 : sanxiyn/rust/mach-sty, r=thestinger

11 years agoMerge remote-tracking branch 'brson/io' into incoming
Brian Anderson [Fri, 3 May 2013 03:51:56 +0000 (20:51 -0700)]
Merge remote-tracking branch 'brson/io' into incoming

Conflicts:
mk/rt.mk
src/libcore/run.rs

11 years agoauto merge of #6201 : pcwalton/rust/inhtwama-serializer, r=graydon
bors [Fri, 3 May 2013 03:39:36 +0000 (20:39 -0700)]
auto merge of #6201 : pcwalton/rust/inhtwama-serializer, r=graydon

This PR removes mutable fields from the serializer and makes the encoder and decoder use INHTWAMA properly (i.e. `&mut self`).

r? @graydon

11 years agoauto merge of #6140 : Dretch/rust/run-with-rust, r=brson
bors [Fri, 3 May 2013 02:15:36 +0000 (19:15 -0700)]
auto merge of #6140 : Dretch/rust/run-with-rust, r=brson

Even more of `core::run` could be rust-ified -- I believe that access to the C extern environ can be done with rust now. I did not do this because some special casing is needed for OSX and I don't have a mac I can test with.

I think this will also fix #6096.

11 years agocore: Wire up the unwinder to newsched again
Brian Anderson [Fri, 3 May 2013 02:13:56 +0000 (19:13 -0700)]
core: Wire up the unwinder to newsched again

This was some merge fallout

11 years agorustc: Drop the visitor object from the visitor glue
Brian Anderson [Fri, 3 May 2013 01:42:07 +0000 (18:42 -0700)]
rustc: Drop the visitor object from the visitor glue

Recent demoding makes the visitor glue leak. It hasn't shown up in tests
because the box annihilator deletes the leaked boxes. This affects the
new scheduler though which does not yet have a box annihilator.

I don't think there's any great way to test this besides setting up
a task that doesn't run the box annihilator and I don't know that that's
a capability we want tasks to have.

11 years agolibrustc: Make uninhabited enums not castable to int
Patrick Walton [Fri, 3 May 2013 01:41:57 +0000 (18:41 -0700)]
librustc: Make uninhabited enums not castable to int

11 years agoauto merge of #6195 : luqmana/rust/newtype-drop, r=catamorphism
bors [Fri, 3 May 2013 01:09:35 +0000 (18:09 -0700)]
auto merge of #6195 : luqmana/rust/newtype-drop, r=catamorphism

Follow up with test case for #6125.

11 years agolibrustc: Update the serializer to work properly with INHTWAMA, removing mutable...
Patrick Walton [Thu, 2 May 2013 00:54:54 +0000 (17:54 -0700)]
librustc: Update the serializer to work properly with INHTWAMA, removing mutable fields in the process

11 years agoauto merge of #6192 : thestinger/rust/link_args, r=catamorphism
bors [Thu, 2 May 2013 23:57:36 +0000 (16:57 -0700)]
auto merge of #6192 : thestinger/rust/link_args, r=catamorphism

Lots of linking arguments need to be passed as -Wl,--foo so giving the
comma meaning at the rustc layer makes those flags impossible to pass.

Multiple arguments can now be passed from a shell by quoting the
argument: --link-args='-lfoo -Wl,--as-needed'.

11 years agoauto merge of #6172 : Sodel-the-Vociferous/rust/rm_trt_obj_magic_nums, r=catamorphism...
bors [Thu, 2 May 2013 23:03:37 +0000 (16:03 -0700)]
auto merge of #6172 : Sodel-the-Vociferous/rust/rm_trt_obj_magic_nums, r=catamorphism,graydon

I don't know how one would write a separate test for this sort of thing. Building the compiler, and `make check` worked, which should mean I didn't screw anything.

11 years agolibstd: De-mut arena
Patrick Walton [Mon, 29 Apr 2013 22:23:04 +0000 (15:23 -0700)]
libstd: De-mut arena

11 years agoauto merge of #6197 : graydon/rust/re-xfail, r=graydon
bors [Thu, 2 May 2013 21:15:37 +0000 (14:15 -0700)]
auto merge of #6197 : graydon/rust/re-xfail, r=graydon

These were accidentally un-xfail'ed since they pass on x64. They don't yet on x86.

11 years agore-xfail some tests that fail on x86
Graydon Hoare [Thu, 2 May 2013 21:12:55 +0000 (14:12 -0700)]
re-xfail some tests that fail on x86

11 years agoFix some issues with test_destroy_actually_kills:
gareth [Thu, 2 May 2013 20:19:12 +0000 (21:19 +0100)]
Fix some issues with test_destroy_actually_kills:
- it is now cross platform, instead of just unix
- it now avoids sleeping (fixing issue #6156)
- it now calls force_destroy() when force = true (was a bug)

11 years agoauto merge of #6193 : youknowone/rust/static-string, r=sanxiyn
bors [Thu, 2 May 2013 19:36:36 +0000 (12:36 -0700)]
auto merge of #6193 : youknowone/rust/static-string, r=sanxiyn

11 years agoAdd test for drop for newtype structs.
Luqman Aden [Thu, 2 May 2013 18:33:57 +0000 (11:33 -0700)]
Add test for drop for newtype structs.

11 years agoauto merge of #6184 : kud1ing/rust/master, r=sanxiyn
bors [Thu, 2 May 2013 18:30:41 +0000 (11:30 -0700)]
auto merge of #6184 : kud1ing/rust/master, r=sanxiyn

11 years agoRemove errant trailing whitespace.
gareth [Wed, 1 May 2013 21:20:26 +0000 (22:20 +0100)]
Remove errant trailing whitespace.

11 years agoConvert most of rust_run_program.cpp to rust (issue #2674).
gareth [Tue, 30 Apr 2013 22:00:07 +0000 (23:00 +0100)]
Convert most of rust_run_program.cpp to rust (issue #2674).

11 years agoauto merge of #6125 : luqmana/rust/newtype-drop, r=pcwalton
bors [Thu, 2 May 2013 17:21:40 +0000 (10:21 -0700)]
auto merge of #6125 : luqmana/rust/newtype-drop, r=pcwalton

#6090

r? @brson

11 years agomake link_args use spaces as separators
Daniel Micay [Thu, 2 May 2013 16:46:58 +0000 (12:46 -0400)]
make link_args use spaces as separators

Lots of linking arguments need to be passed as -Wl,--foo so giving the
comma meaning at the rustc layer makes those flags impossible to pass.

Multiple arguments can now be passed from a shell by quoting the
argument: --link-args='-lfoo -Wl,--as-needed'.

11 years agoUse static strings
Jeong YunWon [Thu, 2 May 2013 16:28:53 +0000 (01:28 +0900)]
Use static strings

11 years agoauto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis
bors [Thu, 2 May 2013 16:18:37 +0000 (09:18 -0700)]
auto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis

This adds #[inline] to many very common string routines (e.g. `len`).

It also rewrites `repeat` to not use `+=` and make it O(n) rather than O(n^2), and also concat/connect(_slices) to reduce the overhead of reallocations, and constantly `set_len`ing (etc) in `push_str`. (The added complexity might not be worth the 20% speedup though.)

11 years agoauto merge of #6178 : erickt/rust/remove-drop, r=graydon
bors [Thu, 2 May 2013 15:18:38 +0000 (08:18 -0700)]
auto merge of #6178 : erickt/rust/remove-drop, r=graydon

This patch removes ty::LegacyDtor, which is no longer used.

11 years agoauto merge of #6176 : thestinger/rust/libuv_optimize, r=thestinger
bors [Thu, 2 May 2013 14:15:39 +0000 (07:15 -0700)]
auto merge of #6176 : thestinger/rust/libuv_optimize, r=thestinger

Closes #6142

11 years agoauto merge of #6177 : gifnksm/rust/iter-chain, r=thestinger
bors [Thu, 2 May 2013 13:15:37 +0000 (06:15 -0700)]
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.

11 years agoRemove codes related to modes
Seo Sanghyeon [Thu, 2 May 2013 12:56:20 +0000 (21:56 +0900)]
Remove codes related to modes

11 years agolibcore: Export core::from_str::FromStr from core::prelude
gifnksm [Thu, 2 May 2013 11:20:22 +0000 (20:20 +0900)]
libcore: Export core::from_str::FromStr from core::prelude

11 years agoThe following code was generated by "src/etc/unicode.py"
kud1ing [Thu, 2 May 2013 10:38:39 +0000 (13:38 +0300)]
The following code was generated by "src/etc/unicode.py"

11 years agoExplain that the source code was generated by this script
kud1ing [Thu, 2 May 2013 10:37:57 +0000 (13:37 +0300)]
Explain that the source code was generated by this script

11 years agolibcore: optimize string joining routines.
Huon Wilson [Thu, 2 May 2013 09:24:41 +0000 (19:24 +1000)]
libcore: optimize string joining routines.

This makes concat/connect/connect_slices about 20% faster, and takes
`repeat` from O(n^2) to O(n), and lowers the constant factor.

11 years agocore: inlining on common functions
Huon Wilson [Thu, 2 May 2013 07:49:11 +0000 (17:49 +1000)]
core: inlining on common functions

11 years agoauto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silently-skip-erroneou...
bors [Thu, 2 May 2013 07:15:46 +0000 (00:15 -0700)]
auto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silently-skip-erroneous-tests, r=pnkfelix

...e.

Fixes #4391.

11 years agoMore cases of [cfg(test)] instead of [test].
Felix S. Klock II [Thu, 2 May 2013 06:50:19 +0000 (08:50 +0200)]
More cases of [cfg(test)] instead of [test].

11 years agoMore cases of [cfg(test)] instead of [test].
Felix S. Klock II [Wed, 1 May 2013 23:32:37 +0000 (01:32 +0200)]
More cases of [cfg(test)] instead of [test].

11 years agoLets see if changing `span_fatal` to `span_err` gets me further through make check.
Felix S. Klock II [Wed, 1 May 2013 23:31:58 +0000 (01:31 +0200)]
Lets see if changing `span_fatal` to `span_err` gets me further through make check.

11 years agomod items need to be marked with `cfg(test)` not `test`.
Felix S. Klock II [Tue, 30 Apr 2013 12:36:18 +0000 (14:36 +0200)]
mod items need to be marked with `cfg(test)` not `test`.

11 years agomod items need to be marked with `cfg(test)` not `test`.
Felix S. Klock II [Tue, 30 Apr 2013 11:02:29 +0000 (13:02 +0200)]
mod items need to be marked with `cfg(test)` not `test`.

11 years agoIssue 4391: rustc should not silently skip tests with erroneous signature.
Felix S. Klock II [Mon, 29 Apr 2013 14:25:40 +0000 (16:25 +0200)]
Issue 4391: rustc should not silently skip tests with erroneous signature.

11 years agoauto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn
bors [Thu, 2 May 2013 06:09:36 +0000 (23:09 -0700)]
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).

11 years agoauto merge of #6174 : sanxiyn/rust/static-string, r=brson
bors [Thu, 2 May 2013 05:06:37 +0000 (22:06 -0700)]
auto merge of #6174 : sanxiyn/rust/static-string, r=brson

11 years agoauto merge of #6151 : bjz/rust/local-variable-cleanup, r=brson
bors [Thu, 2 May 2013 04:00:39 +0000 (21:00 -0700)]
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.

11 years agorustc: remove ty::LegacyDtor
Erick Tryzelaar [Thu, 2 May 2013 03:30:05 +0000 (20:30 -0700)]
rustc: remove ty::LegacyDtor

11 years agoRemove 'Local Variable' comments
Brendan Zabarauskas [Wed, 1 May 2013 10:52:09 +0000 (20:52 +1000)]
Remove 'Local Variable' comments

11 years agoauto merge of #6173 : sammykim/rust/doc-vec, r=yichoi
bors [Thu, 2 May 2013 02:54:36 +0000 (19:54 -0700)]
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.

11 years agopass along CFLAGS/LINK_FLAGS to libuv
Daniel Micay [Thu, 2 May 2013 01:54:02 +0000 (21:54 -0400)]
pass along CFLAGS/LINK_FLAGS to libuv

Closes #6142

11 years agolibcore: Make `ChainIterator` take two different-typed `Iterator`s.
gifnksm [Thu, 2 May 2013 02:08:33 +0000 (11:08 +0900)]
libcore: Make `ChainIterator` take two different-typed `Iterator`s.

11 years agoAdd error if RED_ZONE_SIZE doesn't get defined
James Miller [Thu, 2 May 2013 02:04:43 +0000 (14:04 +1200)]
Add error if RED_ZONE_SIZE doesn't get defined

11 years agoauto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon
bors [Thu, 2 May 2013 01:45:39 +0000 (18:45 -0700)]
auto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon

implement `Clone` using `deriving(Clone)`.

11 years agoUse static strings
Seo Sanghyeon [Tue, 30 Apr 2013 16:47:52 +0000 (01:47 +0900)]
Use static strings

11 years agoTake string slices
Seo Sanghyeon [Tue, 30 Apr 2013 15:53:20 +0000 (00:53 +0900)]
Take string slices

11 years agoauto merge of #6162 : graydon/rust/random-retry, r=graydon
bors [Thu, 2 May 2013 00:45:37 +0000 (17:45 -0700)]
auto merge of #6162 : graydon/rust/random-retry, r=graydon

Sample from the normal and exponential distributions using the Ziggurat
algorithm.

11 years agoauto merge of #6161 : graydon/rust/glob-retry, r=graydon
bors [Wed, 1 May 2013 23:51:45 +0000 (16:51 -0700)]
auto merge of #6161 : graydon/rust/glob-retry, r=graydon

This is a retry of pull #5832

11 years agolibcore: add N(0,1) and Exp(1) distributions to core::rand.
Huon Wilson [Sun, 28 Apr 2013 14:18:53 +0000 (00:18 +1000)]
libcore: add N(0,1) and Exp(1) distributions to core::rand.

Sample from the normal and exponential distributions using the Ziggurat
algorithm.

11 years agoglob_t should be public on all platforms
Jesse Luehrs [Wed, 1 May 2013 03:26:43 +0000 (22:26 -0500)]
glob_t should be public on all platforms

11 years agoadd a higher level glob() function to os
Jesse Luehrs [Wed, 10 Apr 2013 05:33:21 +0000 (00:33 -0500)]
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?

11 years agolibc bindings for glob.h
Jesse Luehrs [Wed, 10 Apr 2013 03:18:23 +0000 (22:18 -0500)]
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).

11 years agoAdd trait object field types to back/abi.rs, and use them
Daniel Ralston [Wed, 1 May 2013 08:59:36 +0000 (01:59 -0700)]
Add trait object field types to back/abi.rs, and use them

I've added trt_field_vtable, trt_field_box, and trt_field_tydesc, and
inserted them in place of the "magic numbers" used to access trait
object fields through GEPi().

11 years agolibstd: impl Clone for BigUint/BigInt and replace `copy` with `.clone()`
gifnksm [Tue, 30 Apr 2013 11:01:26 +0000 (20:01 +0900)]
libstd: impl Clone for BigUint/BigInt and replace `copy` with `.clone()`

11 years agocompiletest: stop ignoring all tests.
Graydon Hoare [Wed, 1 May 2013 21:58:21 +0000 (14:58 -0700)]
compiletest: stop ignoring all tests.

11 years agoauto merge of #6148 : erickt/rust/remove-drop, r=pcwalton
bors [Wed, 1 May 2013 16:18:59 +0000 (09:18 -0700)]
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.

11 years agopipes: use finally to fix pipes::try_recv
Erick Tryzelaar [Wed, 1 May 2013 14:49:10 +0000 (07:49 -0700)]
pipes: use finally to fix pipes::try_recv

11 years agorustdoc: Remove a now invalid test
Erick Tryzelaar [Wed, 1 May 2013 06:30:04 +0000 (23:30 -0700)]
rustdoc: Remove a now invalid test

11 years agoremove some warnings
Erick Tryzelaar [Wed, 1 May 2013 05:47:09 +0000 (22:47 -0700)]
remove some warnings

11 years agosyntax: remove parse::token::{dtor,literally_dtor}
Erick Tryzelaar [Wed, 1 May 2013 05:42:36 +0000 (22:42 -0700)]
syntax: remove parse::token::{dtor,literally_dtor}

11 years agoallow parsing attributes on struct fields
Erick Tryzelaar [Wed, 1 May 2013 03:20:08 +0000 (20:20 -0700)]
allow parsing attributes on struct fields

11 years agorustc: remove the rest of drop
Erick Tryzelaar [Wed, 1 May 2013 04:00:45 +0000 (21:00 -0700)]
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

11 years agosyntax: remove parsing destructors
Erick Tryzelaar [Wed, 1 May 2013 04:00:30 +0000 (21:00 -0700)]
syntax: remove parsing destructors

11 years agocore: Remove use of deprecated `drop`
Erick Tryzelaar [Wed, 1 May 2013 01:03:09 +0000 (18:03 -0700)]
core: Remove use of deprecated `drop`

11 years agoauto merge of #6147 : bjz/rust/numeric-traits, r=brson
bors [Wed, 1 May 2013 08:51:35 +0000 (01:51 -0700)]
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`

11 years agoauto merge of #6144 : catamorphism/rust/mkdir_recursive-breakage, r=thestinger
bors [Wed, 1 May 2013 07:57:35 +0000 (00:57 -0700)]
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.

11 years agoauto merge of #6139 : thestinger/rust/tmp, r=graydon
bors [Wed, 1 May 2013 06:21:36 +0000 (23:21 -0700)]
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 *.

11 years agoRevert rename of Div to Quot
Brendan Zabarauskas [Wed, 1 May 2013 05:40:05 +0000 (15:40 +1000)]
Revert rename of Div to Quot

11 years agoauto merge of #6131 : thestinger/rust/new_iter, r=graydon
bors [Wed, 1 May 2013 05:24:35 +0000 (22:24 -0700)]
auto merge of #6131 : thestinger/rust/new_iter, r=graydon

11 years agoauto merge of #6115 : jbclements/rust/test-case-fixes, r=jbclements
bors [Wed, 1 May 2013 04:12:36 +0000 (21:12 -0700)]
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.

11 years agoauto merge of #6113 : brson/rust/task-drop, r=graydon
bors [Wed, 1 May 2013 03:09:36 +0000 (20:09 -0700)]
auto merge of #6113 : brson/rust/task-drop, r=graydon

11 years agoauto merge of #6105 : Aatch/rust/linker-improv, r=pcwalton
bors [Wed, 1 May 2013 01:36:45 +0000 (18:36 -0700)]
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.

11 years agocore/std: Fix race condition in os::mkdir_recursive tests
Tim Chevalier [Wed, 1 May 2013 00:58:24 +0000 (17:58 -0700)]
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.

11 years agomk: Fix pdf build
Brian Anderson [Wed, 1 May 2013 00:45:08 +0000 (17:45 -0700)]
mk: Fix pdf build

11 years agoauto merge of #6103 : catamorphism/rust/nonfatal-errors, r=catamorphism
bors [Wed, 1 May 2013 00:39:36 +0000 (17:39 -0700)]
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)

11 years agoMerge remote-tracking branch 'brson/io'
Brian Anderson [Tue, 30 Apr 2013 01:28:01 +0000 (18:28 -0700)]
Merge remote-tracking branch 'brson/io'

Conflicts:
src/libcore/task/local_data_priv.rs

11 years agofixed pattern, moved test to compile-fail
John Clements [Tue, 30 Apr 2013 18:58:55 +0000 (11:58 -0700)]
fixed pattern, moved test to compile-fail

11 years agofixed up syntax
John Clements [Fri, 19 Apr 2013 00:28:22 +0000 (17:28 -0700)]
fixed up syntax

11 years agorenamed issue-2185 to issue-3429
John Clements [Tue, 30 Apr 2013 17:40:08 +0000 (10:40 -0700)]
renamed issue-2185 to issue-3429

11 years agotypestate is not planned for upcoming versions of rust....
John Clements [Fri, 19 Apr 2013 00:20:28 +0000 (17:20 -0700)]
typestate is not planned for upcoming versions of rust....

11 years agofixed this test case too
John Clements [Fri, 19 Apr 2013 00:10:26 +0000 (17:10 -0700)]
fixed this test case too

11 years agofixed the test case, hope it's still testing something
John Clements [Fri, 19 Apr 2013 00:08:23 +0000 (17:08 -0700)]
fixed the test case, hope it's still testing something

11 years agoafter syntax fixes, these tests appear to pass
John Clements [Thu, 18 Apr 2013 23:55:48 +0000 (16:55 -0700)]
after syntax fixes, these tests appear to pass

11 years agomore commits on issue 2185
John Clements [Tue, 30 Apr 2013 17:39:20 +0000 (10:39 -0700)]
more commits on issue 2185