summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-03-26Switched over a bunch of splitting funktions to non-allocating iteratorsMarvin Löbel-23/+31
2013-03-26pre-rebase commitMarvin Löbel-2/+17
2013-03-25auto merge of #5528 : thestinger/rust/find_mut, r=brsonbors-5/+62
This currently requires workarounds for the borrow checker not being flow-sensitive for `LinearMap` and `TrieMap`, but it can already be expressed for `TreeMap` and `SmallIntMap` without that.
2013-03-25auto merge of #5525 : dbaupp/rust/minor_fixups, r=graydonbors-1/+0
Kills some warnings, and implements str::each_char_reverse so that it actually iterates. The test case wasn't detecting a failure, since the loop body was never executed.
2013-03-25auto merge of #5513 : apasel422/rust/deriving, r=luqmanabors-39/+4
This removes some explicit implementations of `Eq` in favor of `#[deriving(Eq)]` and derives `Clone` for a few core types.
2013-03-25auto merge of #5509 : thestinger/rust/oldmap, r=brsonbors-335/+28
The reasoning for doing it this way is that it's much easier to transition method-by-method to the `Map` API than trying to do the migration all at once. I found an issue unrelated to my changes in one of the run-fail tests - if it uses `LinearMap`, it still fails but exits with 0. I xfailed it for now and opened [an issue](https://github.com/mozilla/rust/issues/5512), because it's not caused by these changes.
2013-03-25Merge remote-tracking branch 'brson/rt'Brian Anderson-16/+1935
Conflicts: src/libcore/rt/context.rs src/libcore/rt/sched.rs src/libcore/rt/thread.rs src/libcore/rt/uv.rs
2013-03-24expose find_mut in the Map traitDaniel Micay-18/+18
2013-03-24smallintmap: add find_mut methodDaniel Micay-2/+28
2013-03-24treemap: add a find_mut methodDaniel Micay-3/+34
2013-03-25Kill some warnings: unused imports and old #[deny(..)]s.Huon Wilson-1/+0
2013-03-23replace impls with `deriving` where applicableAndrew Paseltiner-39/+4
2013-03-23turn std::oldmap into a wrapper around LinearMapDaniel Micay-335/+28
2013-03-22librustc: Add explicit lifetime binders and new lifetime notation in ↵Patrick Walton-53/+55
core/std/syntax/rustc
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-202/+202
2013-03-22remove obsolete purity workaroundsDaniel Micay-117/+101
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-353/+353
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-86/+87
2013-03-22std: replace uses of old deriving attribute with new oneAndrew Paseltiner-21/+21
2013-03-22auto merge of #5484 : pcwalton/rust/snapshots, r=pcwaltonbors-3/+0
2013-03-21auto merge of #5481 : thestinger/rust/deque, r=z0w0bors-0/+2
2013-03-21auto merge of #5480 : pcwalton/rust/at-const, r=pcwaltonbors-4/+22
r? @catamorphism
2013-03-21auto merge of #5479 : Kimundi/rust/str-dealloc, r=z0w0bors-3/+4
This makes the `trim` and `substr` functions return a slice instead of an `~str`, and removes the unnecessary `Trimmable` trait (`StrSlice` already contains the same functionality). Also moves the `ToStr` implementations for the three str types into the str module in anticipation of further untangling.
2013-03-21librustc: Register new snapshotsPatrick Walton-3/+0
2013-03-21librustc: Forbid destructors from being attached to any structs that might ↵Patrick Walton-4/+22
contain non-Owned fields. r=nmatsakis
2013-03-21deque: add a module docstringDaniel Micay-0/+2
2013-03-21auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclementsbors-17/+3
Adds an assert_eq! macro that asserts that its two arguments are equal. Error messages can therefore be somewhat more informative than a simple assert, because the error message includes "expected" and "given" values.
2013-03-21Un-renamed trim and substr functions.Marvin Löbel-2/+2
2013-03-21Switched over substr and trim functions in str to be non-allocating, ↵Marvin Löbel-4/+5
temporary renamed them to better track use-sites
2013-03-21auto merge of #5466 : Kimundi/rust/view-slice-rename, r=bstriebors-28/+28
A slice now always refers to something that returns an borrowed pointer, views don't exist anymore. If you want to have an explictit copy of a slice, use `to_owned()`
2013-03-21back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> ↵Marvin Löbel-28/+28
slice_unique
2013-03-20auto merge of #5456 : graydon/rust/fixups, r=pcwaltonbors-0/+1
Stage markers for stage3 and a trivial prelude fix.
2013-03-21renamed str::view -> slice_DBG_BRWDMarvin Löbel-32/+32
renamed str::slice -> slice_DBG_UNIQ changed vec slice method -> to_owned() renamed vec view method -> slice_V_DBG_BRWD
2013-03-20auto merge of #5455 : pcwalton/rust/framework, r=catamorphismbors-2/+2
r? @catamorphism
2013-03-20change some uses of fail_unless to assert_eqJohn Clements-17/+3
2013-03-20libsyntax: Never use `::<>` in the type grammarPatrick Walton-2/+2
2013-03-20add stage3 markers where necessary for dist-snapGraydon Hoare-0/+1
2013-03-20core: add str::each{,i}_reverseErick Tryzelaar-11/+5
2013-03-19core: rename vec::rev_each{,i} to vec::each{,i}_reverseErick Tryzelaar-3/+3
I'm making this change because the _reverse suffix is more commonly used in libcore/libstd.
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-43/+68
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-18libsyntax: Stop parsing old lifetimes, except for the ones on data type ↵Patrick Walton-2/+2
declarations.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-87/+87
notation. rs=delifetiming
2013-03-18core: Simplify uvll bindings and strip out currently-unused bitsBrian Anderson-18/+0
No more mapping uv structs to Rust structs
2013-03-18Give core::rt and std::net their own uvll bindingsBrian Anderson-16/+1955
I intend to do some big refactoring and don't want to deal w/ std just now
2013-03-15auto merge of #5404 : bstrie/rust/decopy, r=pcwaltonbors-21/+21
Also turn `copy` into `.clone()` in much of run-pass.
2013-03-15impl Clone for ~T, ~[T], ~strBen Striegel-21/+21
2013-03-15treemap: use each_mut instead of mutateDaniel Micay-7/+6
2013-03-15treemap: rm old FIXMEDaniel Micay-2/+0
2013-03-15deque: add documentationDaniel Micay-1/+24
2013-03-14MutableIter impl for Option + use it in treemapDaniel Micay-14/+5