about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-02-07Merge branch 'incoming' of https://github.com/mozilla/rust into incomingBrendan Zabarauskas-85/+70
2013-02-07Add type parameter for epsilon valueBrendan Zabarauskas-5/+42
2013-02-06Fix sample program to compile in modern rustMatthew McPherrin-42/+44
2013-02-07Convert fuzzy_epsilon constant to upper case and make publicBrendan Zabarauskas-4/+4
2013-02-06remove old snapshot workaround from smallintmapDaniel Micay-4/+0
2013-02-06treemap: make map_next and set_next publicDaniel Micay-2/+2
2013-02-06update treemap FIXMEDaniel Micay-1/+1
2013-02-06get rid of implicit vec copies in treemap iteratorDaniel Micay-69/+67
Each call to next() was doing a copy rather than a move. There's currently no way for this to be a method that uses &mut self, so it has to be a free function. Closes #4763.
2013-02-06treemap: get rid of some implicit vector copiesDaniel Micay-2/+2
2013-02-06remove issue #3148 workarounds (no longer needed)Daniel Micay-9/+0
2013-02-05oldmap: use &K instead of K in find and getPatrick Walton-53/+52
This reverts commit a4250a96fdf61142a9c8dbb6d37ae8435c99e396. This is not the cause of the nonexhaustive-match failure.
2013-02-05Revert "oldmap: use &K instead of K in find and get"Graydon Hoare-52/+53
This reverts commit 8e643525d4e5bca993dada43615916c382a0645b.
2013-02-05Merge branch 'incoming' into removingTim Chevalier-125/+145
2013-02-05MergeTim Chevalier-584/+712
2013-02-05auto merge of #4796 : catamorphism/rust/derecord_std, r=catamorphismbors-71/+74
See #4665
2013-02-04auto merge of #4784 : alexcrichton/rust/bitv-clear-fix, r=graydonbors-1/+19
I think that the inversion of `op(&mut w)` may have just been a mistake?
2013-02-04Fix the each_storage() iterator on big bit vectorsAlex Crichton-1/+19
2013-02-04auto merge of pull req #4777 from thestinger/rust, r=graydonbors-53/+52
2013-02-04std: Stamp out structural recordsTim Chevalier-71/+74
See #4665
2013-02-04Merge remote-tracking branch 'bstrie/rimov' into incomingBrian Anderson-81/+80
Conflicts: src/libsyntax/parse/parser.rs src/test/bench/graph500-bfs.rs src/test/bench/sudoku.rs src/test/run-pass/borrowck-mut-vec-as-imm-slice.rs src/test/run-pass/empty-mutable-vec.rs src/test/run-pass/foreach-nested.rs src/test/run-pass/swap-2.rs
2013-02-03core: convert ToStr::to_str to take explicit &selfErick Tryzelaar-8/+8
2013-02-03oldmap: use &K instead of K in find and getDaniel Micay-53/+52
2013-02-03Merge remote-tracking branch 'thestinger/old_map' into incomingBrian Anderson-158/+57
Conflicts: src/test/bench/core-map.rs
2013-02-03Fixed `fmt!`, tests, doc-tests.Marvin Löbel-1/+1
2013-02-03Converted the floating point types to the new string conversion functions.Marvin Löbel-2/+2
Also fixed all conflicting calls of the old functions in the rest of the codebase. The set of string conversion functions for each float type now consists of those items: - to_str(), converts to number in base 10 - to_str_hex(), converts to number in base 16 - to_str_radix(), converts to number in given radix - to_str_exact(), converts to number in base 10 with a exact number of trailing digits - to_str_digits(), converts to number in base 10 with a maximum number of trailing digits - implementations for to_str::ToStr and num::ToStrRadix - from_str(), parses a string as number in base 10 including decimal exponent and special values - from_str_hex(), parses a string as a number in base 16 including binary exponent and special values - from_str_radix(), parses a string as a number in a given base excluding any exponent and special values - implementations for from_str::FromStr and num::FromStrRadix
2013-02-03Fixed tests still using old integer to_strMarvin Löbel-13/+16
Fixed integer tests
2013-02-03Converted libcore/uint-template.rs to the new string functions.Marvin Löbel-3/+3
- Moved ToStr implementation of unsigned integers to uint-template.rs. - Marked the `str()` function as deprecated. - Forwarded all conversion functions to `core::num::to_str_common()` and `core::num::from_str_common()`. - Fixed most places in the codebase where `to_str()` is being used. - Added uint-template to_str and from_str overflow tests.
2013-02-03oldmap: &K instead of K for the remove parameterDaniel Micay-3/+3
2013-02-03oldmap: start conversion to explicit selfDaniel Micay-7/+6
2013-02-03oldmap: remove legacy each methodDaniel Micay-4/+0
2013-02-03oldmap: get rid of the legacy each_key methodDaniel Micay-5/+1
2013-02-03oldmap: remove the legacy each_value methodDaniel Micay-4/+0
2013-02-03oldmap: implement core::container::MutableDaniel Micay-6/+8
2013-02-03oldmap: implement core::container::ContainerDaniel Micay-10/+14
2013-02-03oldmap: get rid of the legacy contains_key methodDaniel Micay-8/+4
2013-02-03rename map -> oldmap and mark it as deprecatedDaniel Micay-24/+24
LinearMap is quite a bit faster, and is fully owned/sendable without requiring copies. The older std::map also doesn't use explicit self and relies on mutable fields.
2013-02-03rm commented out std::map code from json moduleDaniel Micay-12/+0
it was replaced by LinearMap
2013-02-03remove old StdMap traitDaniel Micay-80/+2
this has been replaced by core::container::Map
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-9/+7
2013-01-31modernize smallintmapDaniel Micay-133/+95
* switch to explicit self * get rid of the @ box * replace DVec with ~[] (to get rid of the mutable field) * implement the new container::Map trait
2013-01-31copy oldsmallintmap.rs to smallintmap.rsDaniel Micay-0/+237
2013-01-31move smallintmap to oldsmallintmapDaniel Micay-2/+2
2013-01-31implement container::Mutable for SmallIntMapDaniel Micay-3/+17
2013-01-31clean up SmallIntMap tests a bitDaniel Micay-4/+3
2013-01-31drop the StdMap implementation from SmallIntMapDaniel Micay-9/+1
2013-01-31implement container::Container for SmallIntMapDaniel Micay-6/+30
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-180/+181
2013-01-31std: remove transitional codeTim Chevalier-28/+0
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-6/+14
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2013-01-30Repair RIMOV damage to libstd testsBen Striegel-9/+9