about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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
2013-02-08Remove trailing whitespaceMatthew McPherrin-5/+5
2013-02-08oldmap: rm unneeded unsafeDaniel Micay-26/+18
2013-02-08oldmap: separate out the methods that need CopyDaniel Micay-32/+34
2013-02-08oldmap: get rid of legacy _ref suffixesDaniel Micay-11/+11
2013-02-08Merge branch 'master' of https://github.com/mozilla/rustMatthew McPherrin-430/+361
2013-02-08Fix subtle error in caching during kind computation that could cause linearNiko Matsakis-1/+1
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.
2013-02-07fix map testsDaniel Micay-3/+3
2013-02-07implement BaseIter for LinearMapDaniel Micay-10/+10
2013-02-07implement ReverseIter for SmallIntMapDaniel Micay-1/+13
2013-02-07implement ReverseIter for TreeMap and TreeSetDaniel Micay-12/+17
2013-02-07implement BaseIter for SmallIntMapDaniel Micay-14/+19
2013-02-07make Option's map and map_default use a lifetimeDaniel Micay-10/+4
2013-02-07implement BaseIter for TreeMapDaniel Micay-18/+29
2013-02-07rm each method from the Map traitDaniel Micay-13/+13
the map types should implement BaseIter instead
2013-02-07add a BaseIter implementation for PriorityQueueDaniel Micay-0/+9
2013-02-07librustc: Lots of de-muting. rs=demutingPatrick Walton-5/+5
2013-02-07auto merge of #4831 : bjz/rust/incoming, r=pcwaltonbors-9/+46
This is useful for comparing more complex types that include floats.
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-192/+146
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.