about summary refs log tree commit diff
path: root/src/libstd/vec.rs
AgeCommit message (Collapse)AuthorLines
2013-06-15auto merge of #7147 : huonw/rust/vec-connect, r=Aatchbors-16/+18
This is caused by StrVector having a generic implementation for &[S] and so #5898 means that method resolution of ~[~[1]].concat() sees that both StrVector and VectorVector have methods that (superficially) match. They are now connect_vec and concat_vec, which means that they can actually be called.
2013-06-15std: rename .connect/.concat in VectorVector to avoid conflicting with ↵Huon Wilson-16/+18
StrVector. This is caused by StrVector having a generic implementation for &[S] and so #5898 means that method resolution of ~[~[1]].concat() sees that both StrVector and VectorVector have methods that (superficially) match. They are now connect_vec and concat_vec, which means that they can actually be called.
2013-06-14rm CopyableNonstrictIterDaniel Micay-45/+0
copies can just be done explicitly: `xs.transform(|x|x.clone())`
2013-06-14rm MutableIterDaniel Micay-23/+0
replaced with mutable implementations of Iterator
2013-06-14rm ExtendedMutableIterDaniel Micay-7/+0
replaced with `xs.mut_iter().enumerate()`
2013-06-13Revert "std: convert {vec,str}::to_owned to methods."Brian Anderson-5/+11
This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs
2013-06-12std: convert {vec,str}::to_owned to methods.Huon Wilson-11/+5
2013-06-08remove deprecated vec::{is_empty, len} functionsDaniel Micay-38/+33
2013-06-08rm some uses of to_mut_unsafe_ptrDaniel Micay-2/+2
2013-06-09remove unused import warningsHuon Wilson-2/+2
2013-06-09std: remove foldr and alli methods in vecHuon Wilson-16/+0
2013-06-09std: remove fold[lr] in favour of iteratorsHuon Wilson-124/+1
2013-06-09std: remove {all*,any*,count} in favour of iteratorsHuon Wilson-172/+2
2013-06-09std: add reverse vec iterators, replace vec::each*_reverse.Huon Wilson-114/+96
2013-06-08std: remove each[i]_mut functions, in favour of iterators.Huon Wilson-48/+5
2013-06-08std: remove vec::each2 and vec::each2_mut in favour of iteratorsHuon Wilson-38/+0
2013-06-06FixupsMarvin Löbel-0/+10
2013-06-06Deduplicate words in code commentsAlexei Sholik-1/+1
2013-06-06std: add an external iterator for mutating vec elementsHuon Wilson-0/+44
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-3/+3
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-03auto merge of #6886 : jld/rust/vec-each-ret-fix, r=sanxiynbors-2/+19
2013-06-03rename the Ptr trait to RawPtrDaniel Micay-1/+1
Closes #6607
2013-06-03Add traits for concat and connect methodsBrendan Zabarauskas-17/+61
2013-06-01Fix vec::each* return valuesJed Davis-2/+19
2013-06-01Optimize vec::from_elem with manual inlining (borrowck 1.85x speedup on libstd)Corey Richardson-3/+15
2013-05-31mv the raw pointer {swap,replace}_ptr to std::ptrDaniel Micay-12/+12
2013-05-30Require documentation by default for libstdAlex Crichton-48/+89
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-29Fix vec::mut_slicejune0cho-3/+3
2013-05-28auto merge of #6780 : june0cho/rust/issue5984, r=brsonbors-2/+9
Fix #5984. Also, I found a problem on type inference and left a comment.
2013-05-28core::vec is missing methods for mutable slicesJunyoung Cho-2/+9
2013-05-27syntax highlight code examples in docstringsDaniel Micay-9/+8
2013-05-23cleanup warnings from libstdErick Tryzelaar-77/+70
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+4615
This only changes the directory names; it does not change the "real" metadata names.
2011-12-14Remove some duplicated unused parts of std now that they're present in core.Graydon Hoare-836/+0
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-0/+1
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-0/+835