about summary refs log tree commit diff
path: root/src/libcore/vec.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-4615/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20Correctly track the source of imports with the same nameAlex Crichton-1/+1
2013-05-19Register snapshotsBrian Anderson-234/+0
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-288/+288
2013-05-16Update to new for-loop protocolCorey Richardson-4/+4
2013-05-16Remove each_permutation_refCorey Richardson-60/+0
2013-05-16Update to modern rustCorey Richardson-29/+21
2013-05-16Ensure reverse_part does not access outside given vectorTommy M. McGuire-5/+5
2013-05-16Add reverse_part, replace each_permutation, add testsTommy M. McGuire-18/+193
2013-05-16Change unsafe functions to safe functionsSangeun Kim-9/+15
2013-05-14auto merge of #6468 : gifnksm/rust/rposition-immutable, r=brsonbors-26/+26
`position` and `rposition` belonged to `ImmutableCopyableVector`, but they don't need the value is copyable.
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-14Move `position` and `rposition` methods to `ImmutableVector` traitgifnksm-26/+26
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