summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-06-29Optimize str::each_split_within when it is called with large limitsJordi Boggiano-1/+10
2013-06-28Make default method handling not choke on self region params. Closes #7341.Michael Sullivan-2/+4
2013-06-28Add each_parent to WindowsPathCorey Richardson-0/+8
2013-06-28librustc: Fix even *MORE* merge fallout!Patrick Walton-1/+1
2013-06-28libextra: Fix even more merge fallout.Patrick Walton-1/+0
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-1/+1
2013-06-28Rewrite each_path to allow performance improvements in the future.Patrick Walton-11/+19
Instead of determining paths from the path tag, we iterate through modules' children recursively in the metadata. This will allow for lazy external module resolution.
2013-06-28librustc: Fix merge fallout.Patrick Walton-3/+5
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-10/+49
implementations. This should allow fewer symbols to be exported.
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-9/+16
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28libstd: Fix merge fallout.Patrick Walton-2/+3
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-19/+107
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-99/+99
2013-06-28librustc: Rename Const to FreezePatrick Walton-8/+8
2013-06-28librustc: Change Const to Freeze in the compilerPatrick Walton-4/+11
2013-06-28librustc: Rename Owned to Send in the compilerPatrick Walton-1/+8
2013-06-28auto merge of #7426 : thestinger/rust/zero-size-noncopyable, r=catamorphismbors-15/+44
4885918 r=huonw 42a63fc r=thestinger 7ec5a08 r=catamorphism fb1e5f1 r=thestinger 659cd55 r=cmr
2013-06-28std: adjust run.rs test for androidYoung-il Choi-3/+149
2013-06-28auto merge of #7397 : catamorphism/rust/rustpkg_path, r=catamorphismbors-0/+9
r? @brson Unfortunately, the main test for this is ignored due to #7071. Closes #5682
2013-06-27rustpkg: Implement RUST_PATHTim Chevalier-0/+9
Unfortunately, the main test for this is ignored due to #7071. Closes #5682
2013-06-28fix stage0 buildDaniel Micay-5/+8
2013-06-27std: unused import fix for androidYoung-il Choi-1/+0
2013-06-27Rename #[no_drop_flag] to #[unsafe_no_drop_flag]Birunthan Mohanathas-3/+3
2013-06-27util: make NonCopyable 0 size (instead of 1 byte)Daniel Micay-13/+40
this also adds a derived Eq, TotalEq, Ord and TotalOrd along with removing the useless constructor
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-518/+391
2013-06-27auto merge of #7414 : gifnksm/rust/max_by, r=catamorphismbors-0/+62
`max_by` method returns the element that gives the maximum value from the specfied function. `max_by`/`min_by` are convenient when you want to get the value which has greatest/smallest scores. Inspired by [ruby's Enumerable module](http://ruby-doc.org/core-2.0/Enumerable.html).
2013-06-28std: silence some test warnings.Huon Wilson-27/+22
2013-06-28Convert vec::{reserve, reserve_at_least, capacity} to methods.Huon Wilson-76/+76
2013-06-28Convert vec::{partition, partitioned} to methods.Huon Wilson-47/+28
2013-06-28Convert vec::retain to a method.Huon Wilson-22/+18
2013-06-28Convert vec::truncate to a method.Huon Wilson-16/+11
2013-06-28Convert vec::{push, push_all, push_all_move} to methods.Huon Wilson-88/+77
2013-06-28Convert vec::{pop, shift, unshift, insert, remove, swap_remove} to methods.Huon Wilson-133/+101
2013-06-27Convert vec::{head, tail, init, last} (and similar fns) to methods.Huon Wilson-50/+26
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-72/+45
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-2/+2
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-40/+101
2013-06-26std::rt: Some cleanupBrian Anderson-20/+18
2013-06-26vec: remove superseded reverse_part functionDaniel Micay-40/+2
`reverse(xs.mut_slice(a, b))` replaces `reverse_part(xs, a, b)`
2013-06-26Work-around 'static bound requirement in io::with_bytes_reader (note: does ↵Ben Blum-3/+10
not fix #5723, interface still unsafe)
2013-06-26Add methods .move_from() and .copy_from() to vecKevin Ballard-0/+73
Add method .move_from() to MutableVector, which consumes another vector and moves elements into the receiver. Add new trait MutableCloneableVector with one method .copy_from(), which clones elements from another vector into the receiver.
2013-06-26Add method .set_memory in vec::bytes for &[u8]Kevin Ballard-0/+26
Add new trait vec::bytes::MutableByteVector which currently defines one method .set_memory().
2013-06-27iterator: Add `IteratorUtil::max_by/min_by` methodgifnksm-0/+62
2013-06-26changed NOTE to TODOEric Reed-5/+5
2013-06-26cleaned up uv/netEric Reed-68/+32
2013-06-26auto merge of #7345 : blake2-ppc/rust/iterator-flat-map, r=thestingerbors-0/+67
flat_map_ produces an iterator that maps each element to an iterator, and yields the elements of the produced iterators. This is the monadic bind :: M a -> (a -> M b) -> M b for iterators. Named just like the vec method, but with a trailing underline until the method resolution bug is resolved. We discussed the name chain_map, but I decided to go with flat_map_ for consistency with vec. Since it.map(f).flatten() would be the same as it.flat_map(f), we could choose to just implement a flatten method instead. Either way the possibilities are the same but flat_map is more convenient.
2013-06-26converted TCP interface to newtype structsEric Reed-24/+9
2013-06-26removed unecessary methodEric Reed-3/+1
2013-06-26auto merge of #7216 : kballard/rust/task_rng, r=brsonbors-10/+6
2013-06-26auto merge of #7113 : alexcrichton/rust/banned-warnings, r=cmrbors-24/+17
Reopening of #7031, Closes #6963 I imagine though that this will bounce in bors once or twice... Because attributes can't be cfg(stage0)'d off, there's temporarily a lot of new stage0/stage1+ code.