summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-47/+12
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-23/+5
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-21/+6
2013-06-29auto merge of #7441 : catamorphism/rust/testcases_2013-06-27, r=catamorphismbors-0/+120
2013-06-29auto merge of #7244 : bblum/rust/once, r=nikomatsakisbors-0/+59
@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-29xfail-fast once fn run-pass testsBen Blum-0/+4
2013-06-28auto merge of #7479 : mozilla/rust/rollup, r=thestingerbors-1/+1
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-28Add tests for some default method things.Michael Sullivan-0/+86
2013-06-28Rename Const/Owned in more placesJames Miller-8/+8
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-8/+8
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-21/+27
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-2/+6
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-29/+29
2013-06-28librustc: Rename Const to FreezePatrick Walton-2/+2
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-27Add test for #5321.Luqman Aden-0/+25
2013-06-27testsuite: Add test cases, some xfailedTim Chevalier-0/+120
Closes #5060 Closes #4446 Closes #5192
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-8/+2
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-8/+2
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-1/+0
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-41/+41
2013-06-26auto merge of #7354 : bblum/rust/trait-bounds, r=pcwaltonbors-11/+114
r? @nikomatsakis
2013-06-26last bit of whitespaceCorey Richardson-1/+0
2013-06-26Fix run-pass/match-borrowed_str.rs Fixes #7306Nick Desaulniers-36/+42
2013-06-26Add a run-pass test for existential traits in ARCs.Ben Blum-0/+103
2013-06-26Fix pretty-printing for bounded closures. Close #7333.Ben Blum-4/+0
2013-06-26Infer default static/Owned bounds for unbounded heap fns/traits (#7264)Ben Blum-7/+11
2013-06-26Remove the last traces of shapesPhilipp Brüschweiler-5/+0
2013-06-26auto merge of #7356 : msullivan/rust/default-methods, r=bblumbors-0/+22
r?
2013-06-26driver: perform stripping before and after macro expansion.Huon Wilson-0/+70
This allows macros to both be conditionally defined, and expand to items with #[cfg]'s.
2013-06-25auto merge of #7269 : luqmana/rust/drop, r=thestingerbors-43/+43
Finally rename finalize to drop. Closes #4332.
2013-06-25Merge remote-tracking branch 'mozilla/master' into incomingBrian Anderson-143/+246
Conflicts: src/librustc/middle/astencode.rs src/librustc/middle/check_const.rs
2013-06-25Change finalize -> drop.Luqman Aden-43/+43
2013-06-25xfail test hitting a codegen bug (issue #7385)Daniel Micay-1/+2
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-19/+20
2013-06-25container: remove internal iterators from MapDaniel Micay-21/+0
the maps are being migrated to external iterators
2013-06-25Fix another generics bug with default methods. Closes #7295.Michael Sullivan-0/+22
2013-06-25auto merge of #7317 : Aatch/rust/no-drop-flag, r=thestingerbors-0/+25
This adds a `#[no_drop_flag]` attribute. This attribute tells the compiler to omit the drop flag from the struct, if it has a destructor. When the destructor is run, instead of setting the drop flag, it instead zeroes-out the struct. This means the destructor can run multiple times and therefore it is up to the developer to use it safely. The primary usage case for this is smart-pointer types like `Rc<T>` as the extra flag caused the struct to be 1 word larger because of alignment. This closes #7271 and #7138
2013-06-25auto merge of #7254 : Blei/rust/intrinsic-overhaul, r=cmrbors-102/+107
This sets the `get_tydesc()` return type correctly and removes the intrinsic module. See #3730, #3475. Update: this now also removes the unused shape fields in tydescs.
2013-06-25auto merge of #7291 : alexcrichton/rust/static-mut, r=huonwbors-0/+92
This adds both `static mut` items and `static mut` foreign items. This involved changing far less code than I thought it was going to, but the tests seem to pass and the variables seem functional. I'm more than willing to write more tests, so suggestions are welcome! Closes #553
2013-06-25Set #[no_drop_flag] on Rc<T> and AtomicOption. Add TestJames Miller-0/+25
2013-06-24Fix test failure on windowsPhilipp Brueschweiler-3/+1
This patch ensures that the multiple extern definitions of `free` in the run-pass tests have the same declaration, working around #7352.
2013-06-24Fix 'static mut' testsAlex Crichton-2/+2
2013-06-24Un-xfail working testCorey Richardson-1/+0
2013-06-24xfail-pretty on un-xfailed testDaniel Micay-0/+1
2013-06-24deal with windowsDaniel Micay-1/+5