summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-02-16deque: avoid Copy in the get functionDaniel Micay-7/+7
2013-02-16deque: separate the methods that need CopyDaniel Micay-1/+3
2013-02-16deque: rm old return statementsDaniel Micay-5/+5
2013-02-16add a Mutable implementation (clear) to std::dequeDaniel Micay-0/+9
2013-02-16modernize std::dequeDaniel Micay-132/+109
* use a proper exported data type with private fields * implement core::container::Container * use the current constructor convention * use explicit self * get rid of DVec and the mutable fields Closes #2343
2013-02-15rustpkg: Massage for landing.Graydon Hoare-126/+238
2013-02-15Move semver to std and finish rustpkgZack Corr-1/+2
2013-02-15Correct Zack Corr's email in AUTHORS.txtZack Corr-0/+283
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-93/+83
slipped through. r=tjc
2013-02-15auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brsonbors-25/+31
Issue #3869 review? @nikomatsakis Convert all uses of vec::slice to vec::view Issue #3869 Rename const_view to const_slice Renamed mut_view to mut_slice Fix windows build error. `buf` is borrowed by the call to `as_mut_buf()` and so we must invoke `slice()` outside of that call.
2013-02-15libstd: Fix broken test.Luqman Aden-1/+1
2013-02-15libstd: Get rid of `move`.Luqman Aden-363/+357
2013-02-14auto merge of #4938 : thestinger/rust/no_zero, r=brsonbors-3/+3
I removed the unused wrappers methods named `calloc` because they relied on the malloc wrapper having a `bool zero = true` default parameter (which resulted in some accidental zeroing). Perhaps wrapping the actual calloc function would be useful, but I don't know of an existing use case that could use it so I just removed these. This gives an ~1% performance improvement for TreeMap, which does a lot of small allocations. Vectors use `realloc` which didn't zero before these changes so there's no measurable change in performance.
2013-02-14auto merge of #4927 : sanxiyn/rust/remove-dvec, r=catamorphismbors-8/+6
2013-02-14Convert all uses of vec::slice to vec::view Issue #3869Nick Desaulniers-25/+31
Rename const_view to const_slice Renamed mut_view to mut_slice
2013-02-14auto merge of #4934 : nickdesaulniers/rust/issue4524cleanup, r=brsonbors-3/+3
review? @brson Issue #4524
2013-02-14fix bug in uv_ll tests uncovered by not zeroingDaniel Micay-3/+3
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-154/+154
rs=implflipping
2013-02-14Remove all final references to die!Nick Desaulniers-3/+3
2013-02-14Remove DVec from workcacheSeo Sanghyeon-5/+3
2013-02-14Remove DVec from jsonSeo Sanghyeon-3/+3
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-176/+176
2013-02-13auto merge of #4908 : bstrie/rust/rimov3, r=pcwaltonbors-44/+44
This patch finishes removing inner vector mutability from the vast majority of the compiler. Exceptions: * core::dvec: ideally this entire type will be able to be replaced by `~[]`, but Niko asked me to hold off on removing Dvecs until he makes some fixes to borrowed pointers. * liveness: liveness.rs is an impenetrable neutron star of deprecated semantics. * compile-fail: I'm not sure if a lot of these tests are testing inner mutability or mutability in general. I figure that RIMOVing this folder should wait until this syntax is removed from the parser. I also took this chance to remove many of the inner-mutability-related functions from core::vec, or as many uses of those functions as possible where still necessary. consume_mut and append_mut have been axed. cast_to_mut and cast_from_mut are still needed in a few places.
2013-02-13auto merge of #4840 : jbclements/rust/add-json-enum-encoding, r=catamorphismbors-8/+107
r? I added code to the JSON encoder to support the serialization of enums. Before this, the JSON serializer only handled Option, and encoded None as 'null'. Following this change, all enums are encoded as arrays containing the enum name followed by the encoded fields. This appears consistent with the unstated invariant that the resulting output can be mapped back to the input *if* there's a decoder around that knows the types that were in existence when the serialization occurred. Also, added test cases.
2013-02-13rustc and std: teach about #[bench], modernize to use quote_expr! some.Graydon Hoare-79/+437
2013-02-13std: add stats.Graydon Hoare-0/+97
2013-02-13RIMOV core::vecBen Striegel-44/+44
Also remove as many uses as possible of vec::cast_to_mut and cast_from_mut
2013-02-12Adjust borrow checker algorithm to address #4856 unsoundness,Niko Matsakis-69/+87
and then adjust code to match. rs=unsound (will review post-landing)
2013-02-12auto merge of #4874 : thestinger/rust/option, r=catamorphismbors-4/+4
2013-02-11std: Fix uv_tcp_t size on i686-apple-darwinBrian Anderson-19/+66
2013-02-11Merge remote-tracking branch 'thestinger/treemap'Brian Anderson-39/+53
2013-02-10treemap: cut down on swap_unwrap in removeDaniel Micay-15/+21
Performance before: std::treemap::TreeMap sequential_ints 0.083971 s random_ints 0.095861 s delete_ints 0.083931 s sequential_strings 0.278272 s random_strings 0.240286 s delete_strings 0.173581 s Performance after: std::treemap::TreeMap sequential_ints 0.083297 s random_ints 0.097644 s delete_ints 0.052602 s sequential_strings 0.287326 s random_strings 0.242372 s delete_strings 0.142269 s
2013-02-10avoid explicit reborrow in heir_swapDaniel Micay-1/+1
2013-02-10treemap: avoid swap_unwrap in insertDaniel Micay-12/+11
Performance before: std::treemap::TreeMap sequential_ints 0.151877 s random_ints 0.160926 s delete_ints 0.08694 s sequential_strings 0.316458 s random_strings 0.290778 s delete_strings 0.169892 s Performance after: std::treemap::TreeMap sequential_ints 0.083971 s random_ints 0.095861 s delete_ints 0.083931 s sequential_strings 0.278272 s random_strings 0.240286 s delete_strings 0.173581 s
2013-02-10treemap: use an &mut parameter for skew and splitDaniel Micay-19/+28
results in a small performance improvement and reduces the compiled code size
2013-02-10std: fix libuv structs on macosJeff Olson-2/+35
2013-02-10make Option's iter method use a lifetimeDaniel Micay-4/+4
2013-02-10std: strip sillyness from debug comment in iotask teardownJeff Olson-1/+1
2013-02-10rt/std: update of libuv API glue for libuv submodule updateJeff Olson-125/+104
2013-02-10added issue for reference in FIXMEJohn Clements-1/+1
2013-02-09auto merge of #4827 : mcpherrinm/rust/master, r=catamorphismbors-37/+39
It seems to me the library needs more work to be done, but having a non-compilable sample program seems like bad news.
2013-02-09auto merge of #4854 : thestinger/rust/oldmap, r=catamorphismbors-64/+58
2013-02-09json tidyJohn Clements-4/+6
2013-02-09re-special-case Option in JSON encodingJohn Clements-9/+64
2013-02-09json add enum encoder test caseJohn Clements-1/+41
2013-02-09json bugfixJohn Clements-2/+1
2013-02-09tidyJohn Clements-6/+6
2013-02-09json bugfixesJohn Clements-10/+7
2013-02-09fix typos in sample code, add enum to json encoder, add test caseJohn Clements-2/+8
2013-02-09auto merge of #4848 : nikomatsakis/rust/issue-4821-bad-kind-computation, ↵bors-1/+1
r=catamorphism ...ear values to be copied. Rewrite kind computation so that instead of directly computing the kind it computes what kinds of values are present in the type, and then derive kinds based on that. I find this easier to think about. Fixes #4821. r? @catamorphism