about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-02-27libsyntax: Forbid mutable vectors. rs=demutingPatrick Walton-6/+4
2013-02-27libsyntax: Forbid `~mut` and `~const`. rs=demutingPatrick Walton-16/+18
2013-02-27Fix: now sha1 result_str() return correct valueJihyun Yu-1/+21
2013-02-27auto merge of #5123 : thestinger/rust/treemap, r=nikomatsakisbors-113/+93
* replace the dual next() and get() calls with a single next() function * drop one of the pointer members from the struct * add a method for using the lazy iterator with a for loop
2013-02-27treemap: improve the lazy iteratorDaniel Micay-113/+93
* replace the dual next() and get() calls with a single next() function * drop one of the pointer members from the struct * add a method for using the lazy iterator with a for loop
2013-02-26auto merge of #5119 : Kimundi/rust/incoming, r=catamorphismbors-10/+10
Removed deprecated `str()` functions in int-template.rs and uint-template.rs
2013-02-26Removed deprecated `str()` functions in int-template.rs and uint-template.rsMarvin Löbel-10/+10
2013-02-26libcore: Move Cell to core and de-~mut core and stdPatrick Walton-91/+0
2013-02-26librustc: Implement a lint mode for mutable structures; deny by default. r=tjcPatrick Walton-0/+1
2013-02-23remove oldsmallintmapDaniel Micay-238/+0
Closes #4738
2013-02-22auto merge of #5081 : brson/rust/pipes, r=pcwaltonbors-75/+77
r?
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-75/+77
2013-02-21Cleanup, commenting, trivial renamingJohn Clements-2/+0
2013-02-21librustc: Separate the rest of the trait bounds with `+` and stop parsing ↵Patrick Walton-25/+13
space-separated ones. rs=plussing
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-210/+212
2013-02-19std: update rand-using tests, r=burningtreeGraydon Hoare-3/+3
2013-02-18auto merge of #5005 : alexcrichton/rust/bitv++, r=catamorphismbors-187/+701
These commits take the old bitv implementation and modernize it with an explicit self, some minor touchups, and using what I think is some more recent patterns (like `::new` instead of `Type()`). Additionally, this adds an implementation of `container::Set` on top of a bit vector to have as a set of `uint`s. I initially tried to parameterize the type for the set to be `T: NumCast` but I was hitting build problems in stage0 which I think means that it's not in a snapshot yet, so it's just hardcoded as a set of `uint`s now. In the future perhaps it could be parameterized. I'm not sure if it would really add anything, though, so maybe it's nicer to be hardcoded anyway. I also added some extra methods to do normal bit vector operations on the set in-place, but these aren't a part of the `Set` trait right now. I haven't benchmarked any of these operations just yet, but I imagine that there's quite a lot of room for optimization here and there.
2013-02-18Add benchmarks to measure differences in bit vectorsAlex Crichton-0/+92
2013-02-17Implement Set container on top of a bit vectorAlex Crichton-40/+470
2013-02-17Favor local closures instead of global functionsAlex Crichton-8/+4
2013-02-17Remove the 'uint_bits' constant in bitvAlex Crichton-11/+9
2013-02-17Change SmallBitv to use uint instead of u32Alex Crichton-8/+8
2013-02-17Modernize bitv mut fields and explicit selfAlex Crichton-134/+132
2013-02-17vec: grow_fn doesn't require CopyDaniel Micay-1/+1
2013-02-16auto merge of #4993 : thestinger/rust/deque, r=graydonbors-158/+138
Closes #3748 and #2343.
2013-02-17Removed more capture claueses.Seth Pink-3/+3
2013-02-16deque: get rid of Copy requirementDaniel Micay-2/+0
Closes #3748
2013-02-16deque: avoid Copy in growDaniel Micay-8/+5
2013-02-16deque: avoid Copy for getDaniel Micay-17/+17
2013-02-17Remove use of capture clause #4965Seth Pink-1/+1
2013-02-16deque: avoid Copy in pop_{front,back}Daniel Micay-18/+17
2013-02-16deque: avoid Copy in peek_{front,back}Daniel Micay-52/+50
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