summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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.
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