summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2013-07-01auto merge of #7443 : yjh0502/rust/fix_field_dup, r=huonwbors-0/+17
Check if there is duplicated field names in struct.
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-70/+30
Continuation of #7430. I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30Bump version from 0.7-pre to 0.7Brian Anderson-1/+1
2013-06-30Remove vec::{map, mapi, zip_map} and the methods, except for .map, since thisHuon Wilson-42/+21
is very common, and the replacement (.iter().transform().collect()) is very ugly.
2013-06-30Convert vec::{grow, grow_fn, grow_set} to methods.Huon Wilson-3/+1
2013-06-30Convert vec::{reverse, swap} to methods.Huon Wilson-24/+7
2013-06-30Convert vec::{rposition, rposition_elem, position_elem, contains} to methods.Huon Wilson-1/+1
2013-06-30Fixes #7377jihyun-0/+17
2013-06-29auto merge of #7441 : catamorphism/rust/testcases_2013-06-27, r=catamorphismbors-0/+149
2013-06-29auto merge of #7363 : bblum/rust/soundness, r=nikomatsakisbors-3/+91
The commit f9a5453 is meant to be a temporary hold-over. Whether or not there is added a way for the compiler to "implicitly borrow" stack closures in this way, there should be a codegen optimization that prevents having to traverse possibly-very-many function pointers to find the function you ultimately wanted to call. I tried to separate out the changes so this particular commit could be straight-up reverted if auto-borrowing happens in the future. r? @nikomatsakis
2013-06-29auto merge of #7244 : bblum/rust/once, r=nikomatsakisbors-0/+196
@graydon suggested that once closures not be part of the language for 1.0, but that they might be hidden behind a -Z compile flag as an "experimental feature" in case people decide they need them. Regardless of whether ```-Z once-fns``` is set, this PR will parse the ```once``` keyword and will prevent closures labelled with it from being called more than once. It will also permit moving out of captured vars in heap closures, just to let the runtime writers stop using ```Cell``` sooner. Setting ```-Z once-fns``` only toggles whether the move-out-from-capture privilege is also given for stack closures. r? @nikomatsakis
2013-06-29Add two tests for the case of the recurring closure.Ben Blum-0/+88
2013-06-29Trade stack closure copyability for type soundness.Ben Blum-1/+1
2013-06-29'Borrow' stack closures rather than copying them (e.g., "|x|f(x)"), in prep ↵Ben Blum-2/+2
for making them noncopyable.
2013-06-29xfail-fast once fn run-pass testsBen Blum-0/+4
2013-06-28auto merge of #7479 : mozilla/rust/rollup, r=thestingerbors-5/+5
22b7eb3 r=thestinger 28a3613 r=cmr a0c31ec r=bstrie ee7307e r=thestinger b9cf6a3 r=thestinger
2013-06-29iterator: UnfoldrIterator::new should have function argument lastblake2-ppc-1/+1
To match Rust conventions and enable use of `do` etc, make sure the closure is the last argument to the `new` method.
2013-06-29Rename #[mutable] to #[no_freeze]Brian Anderson-2/+2
2013-06-29Rename #[non_sendable] to #[no_send]Brian Anderson-2/+2
2013-06-28auto merge of #7471 : msullivan/rust/default-methods, r=graydonbors-0/+110
This fixes a bunch of default method bugs and restructures how vtable resolutions are represented. (It also adds a depth counter to llvm::type_to_str as a hacky work around for our circular llvm types. This is related in the sense that I needed to do it to make debug tracing not cause rustc to crash after running out of stack space.)
2013-06-28Add tests for some default method things.Michael Sullivan-0/+110
2013-06-28auto merge of #7466 : thestinger/rust/passes, r=cmrbors-4/+4
2013-06-28copy the optimization passes from clangDaniel Micay-4/+4
2013-06-28Fix threadringCorey Richardson-1/+3
2013-06-28Rename Const/Owned in more placesJames Miller-13/+13
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-19/+19
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-32/+39
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28libsyntax: Remove "copy" pattern bindings from the languagePatrick Walton-4/+4
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-10/+17
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-54/+54
2013-06-28librustc: Rename Const to FreezePatrick Walton-11/+11
2013-06-28auto merge of #7426 : thestinger/rust/zero-size-noncopyable, r=catamorphismbors-1/+1
4885918 r=huonw 42a63fc r=thestinger 7ec5a08 r=catamorphism fb1e5f1 r=thestinger 659cd55 r=cmr
2013-06-27Rename #[no_drop_flag] to #[unsafe_no_drop_flag]Birunthan Mohanathas-1/+1
2013-06-27auto merge of #7410 : luqmana/rust/bare-self, r=catamorphismbors-0/+25
Finally sorted this out. Fixes #5321, #4439, and #4850.
2013-06-27Add test for #5321.Luqman Aden-0/+25
2013-06-27auto merge of #7432 : michaelwoerister/rust/WP3, r=jdmbors-29/+1140
2013-06-27testsuite: Add test cases, some xfailedTim Chevalier-0/+149
Closes #5060 Closes #4446 Closes #5192
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-25/+15
2013-06-27debuginfo: Some corrections after review.Michael Woerister-4/+16
2013-06-27debuginfo: Formatting cleanup.Michael Woerister-22/+12
2013-06-27debuginfo: Added test case for function arguments.Michael Woerister-0/+51
2013-06-27debuginfo: Added test case for local variables declared with destructuring.Michael Woerister-0/+33
2013-06-27debuginfo: Added more tests for region pointers (tuples, structs).Michael Woerister-0/+125
2013-06-27debuginfo: Fixed some instances of gdb wrongly printing u8/i8 values as chars.Michael Woerister-6/+6
2013-06-27debuginfo: Added test cases for region pointers into heap boxes for basic types.Michael Woerister-0/+230
2013-06-27debuginfo: Added test case for region pointers pointing to stack values with ↵Michael Woerister-0/+116
basic type.
2013-06-27debuginfo: Added test case for structs with destructor.Michael Woerister-0/+77
2013-06-27debuginfo: Added test case for local variable scopes.Michael Woerister-0/+49
2013-06-27debuginfo: Made test cases use correct naming convention for variables.Michael Woerister-64/+64
2013-06-27debuginfo: Added test cases for tuples contained in structs.Michael Woerister-0/+151