about summary refs log tree commit diff
path: root/src/libcore/vec.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-5/+5
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-14auto merge of #6441 : alexcrichton/rust/issue-5531, r=luqmanabors-10/+12
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude. I'm not quite sure how resolution works with traits, but it seems to me like the public imports at the top-level of the core crate were leaking into the sub-crates, but that could also be working as intended. Regardless, things compile without the re-exports now.
2013-05-13auto merge of #6388 : recrack/rust/each2_mut, r=pcwaltonbors-2/+31
- vec.rs :add 'each2_mut function' - testsuit : run-pass/vec-each2_mut.rs
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-10/+12
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-13core: Move locks, atomic rc to unstable::syncBrian Anderson-2/+3
2013-05-13Add vec.rs each2_mut functionYoungmin Yoo-2/+31
2013-05-12libcore: Change `each_val` to follow new for-loop protocolgifnksm-6/+19
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-5/+5
Fix for #3356
2013-05-10Stop using the '<->' operatorAlex Crichton-39/+42
2013-05-10test: Use the new `for` protocolAlex Crichton-2/+26
2013-05-10renamed vec::from_slice to vec::to_ownedYoungsoo Son-5/+5
2013-05-10core: Use the new `for` protocolAlex Crichton-23/+190
2013-05-09auto merge of #6354 : Aatch/rust/uninit-intrinsic, r=graydonbors-5/+90
Adds an `uninit` intrinsic. It's just an empty function, so llvm optimizes it down to nothing. I changed all of the `init` intrinsic usages to `uninit` where it seemed appropriate to.
2013-05-09Make staged versions of the functions that use uninitJames Miller-0/+90
2013-05-09auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiynbors-1/+1
Hi there, Really enjoying Rust. Noticed a few typos so I searched around for a few more--here's some fixes. Ran `make check` and got `summary of 24 test runs: 4868 passed; 0 failed; 330 ignored`. Thanks! Sean
2013-05-09Replace init() with uninit() where appropriateJames Miller-9/+4
2013-05-08auto merge of #6327 : z0w0/rust/rm-notest, r=brsonbors-15/+15
Makes it more consistent, imo.
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-6/+6
2013-05-09Fix typosSean Moon-1/+1
2013-05-08Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]Zack Corr-15/+15
2013-05-07auto merge of #6294 : sonwow/rust/renamed-test, r=thestingerbors-2/+2
Renamed test
2013-05-07auto merge of #6254 : alexcrichton/rust/issues-5311-4490-better-foldl, r=graydonbors-8/+9
Closes #5311 and #4490. This doesn't change `vec.foldl` because that's still part of `old_iter`, although I could change that as well if necessary.
2013-05-07renamed testsYoungsoo Son-2/+2
2013-05-06Improve lifetimes on foldl/foldr and lift the Copy requirementAlex Crichton-8/+9
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-4/+4
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-04Register snapshotsBrian Anderson-226/+0
2013-04-30allover: numerous unused muts etcNiko Matsakis-6/+3
2013-04-30new borrow checker (mass squash)Niko Matsakis-10/+1
2013-04-30adapt to snapshotNiko Matsakis-217/+0
2013-04-30I modified the doc of from_elem, from_fn, I think it returns an owned vectorSangeun Kim-4/+4
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-37/+29
2013-04-28make way for a new iter moduleDaniel Micay-75/+75
2013-04-26auto merge of #6057 : cmr/rust/map_zip, r=graydonbors-6/+9
I think the name is more clear, and fits with filter_map etc.
2013-04-25Rename vec::mod2 to vec::mod_zipCorey Richardson-6/+9
2013-04-24Move documentation for vec::windowed where it will be generatedCorey Richardson-8/+10
2013-04-24Add basic documentation for with_capacityCorey Richardson-0/+1
2013-04-20core: remove unused 'mut' variablesAlex Crichton-2/+2
2013-04-20Replaced many instances of reinterpret_cast with transmuteMatthijs Hofstra-14/+14
2013-04-19auto merge of #5945 : graydon/rust/fix-unicode-tables, r=pcwaltonbors-0/+85
This switches the unicode functions in core to use static character-range tables and a binary search helper rather than open-coded switch statements. It adds about 50k of read only data to the libcore binary but cuts out a similar amount of compiled IR. Would have done it this way in the first place but we didn't have structured statics for a long time.
2013-04-19auto merge of #5968 : gifnksm/rust/windowed, r=brsonbors-0/+3
vec::windowed fails if given window size is greater than vector length + 1. ```rust for vec::windowed(7, &[1,2,3,4,5,6]) |vs| { fail!(); } // => do nothing for vec::windowed(8, &[1,2,3,4,5,6]) |vs| { fail!(); } // => assertion failure in vec::slice ```
2013-04-20libcore: Fix assertion failure in vec::windowe.gifnksm-0/+3
vec::windowed fails if given window size is greater than vector length + 1.
2013-04-19librustc: Fix botched merge. rs=mergePatrick Walton-0/+9
2013-04-19librustc: WIP patch for using the return value.Patrick Walton-6/+21
2013-04-19test: Add fannkuch-redux and fasta-redux shootout benchmarksPatrick Walton-1/+23
2013-04-19test: Rewrite nbody and spectralnorm shootout benchmarksPatrick Walton-6/+35
2013-04-19librustc: Implement fast-ffi and use it in various placesPatrick Walton-0/+2
2013-04-19move iterator adaptor tests to iterator moduleDaniel Micay-66/+0
2013-04-19iterator: add skip and takeDaniel Micay-0/+28
2013-04-18core: replace unicode match exprs with bsearch in const arrays, minor perf win.Graydon Hoare-43/+43
2013-04-18core: add vec::bsearch.Graydon Hoare-0/+85