about summary refs log tree commit diff
path: root/src/test/bench/std-smallintmap.rs
AgeCommit message (Collapse)AuthorLines
2015-08-12Remove all unstable deprecated functionalityAlex Crichton-61/+0
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-08-10Stabilize the Duration APISteven Fackler-4/+4
This commit stabilizes the `std::time` module and the `Duration` type. `Duration::span` remains unstable, and the `Display` implementation for `Duration` has been removed as it is still being reworked and all trait implementations for stable types are de facto stable. This is a [breaking-change] to those using `Duration`'s `Display` implementation.
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-1/+1
2015-05-13std: Redesign Duration, implementing RFC 1040Alex Crichton-5/+5
This commit is an implementation of [RFC 1040][rfc] which is a redesign of the currently-unstable `Duration` type. The API of the type has been scaled back to be more conservative and it also no longer supports negative durations. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md The inner `duration` module of the `time` module has now been hidden (as `Duration` is reexported) and the feature name for this type has changed from `std_misc` to `duration`. All APIs accepting durations have also been audited to take a more flavorful feature name instead of `std_misc`. Closes #24874
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-0/+2
2015-02-16Replace some uses of deprecated os functionsSimonas Kazlauskas-13/+12
This commit mostly replaces some of the uses of os::args with env::args.
2015-02-13Cleanup getenv from tests and benchmarksSimonas Kazlauskas-1/+2
2015-01-29`for x in range(a, b)` -> `for x in a..b`Jorge Aparicio-3/+3
sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
2015-01-08bench: fix a few compiler warningsTshepang Lekhonkhobe-1/+0
2015-01-03Remove deprecated functionalityAlex Crichton-3/+2
This removes a large array of deprecated functionality, regardless of how recently it was deprecated. The purpose of this commit is to clean out the standard libraries and compiler for the upcoming alpha release. Some notable compiler changes were to enable warnings for all now-deprecated command line arguments (previously the deprecated versions were silently accepted) as well as removing deriving(Zero) entirely (the trait was removed). The distribution no longer contains the libtime or libregex_macros crates. Both of these have been deprecated for some time and are available externally.
2015-01-02std: Stabilize the prelude moduleAlex Crichton-0/+1
This commit is an implementation of [RFC 503][rfc] which is a stabilization story for the prelude. Most of the RFC was directly applied, removing reexports. Some reexports are kept around, however: * `range` remains until range syntax has landed to reduce churn. * `Path` and `GenericPath` remain until path reform lands. This is done to prevent many imports of `GenericPath` which will soon be removed. * All `io` traits remain until I/O reform lands so imports can be rewritten all at once to `std::io::prelude::*`. This is a breaking change because many prelude reexports have been removed, and the RFC can be consulted for the exact list of removed reexports, as well as to find the locations of where to import them. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md [breaking-change] Closes #20068
2014-11-12time: Deprecate the library in the distributionAlex Crichton-14/+9
This commit deprecates the entire libtime library in favor of the externally-provided libtime in the rust-lang organization. Users of the `libtime` crate as-is today should add this to their Cargo manifests: [dependencies.time] git = "https://github.com/rust-lang/time" To implement this transition, a new function `Duration::span` was added to the `std::time::Duration` time. This function takes a closure and then returns the duration of time it took that closure to execute. This interface will likely improve with `FnOnce` unboxed closures as moving in and out will be a little easier. Due to the deprecation of the in-tree crate, this is a: [breaking-change] cc #18855, some of the conversions in the `src/test/bench` area may have been a little nicer with that implemented
2014-11-02refactor libcollections as part of collection reformAlexis Beingessner-4/+4
* Moves multi-collection files into their own directory, and splits them into seperate files * Changes exports so that each collection has its own module * Adds underscores to public modules and filenames to match standard naming conventions (that is, treemap::{TreeMap, TreeSet} => tree_map::TreeMap, tree_set::TreeSet) * Renames PriorityQueue to BinaryHeap * Renames SmallIntMap to VecMap * Miscellanious fallout fixes [breaking-change]
2014-10-19Remove a large amount of deprecated functionalityAlex Crichton-3/+3
Spring cleaning is here! In the Fall! This commit removes quite a large amount of deprecated functionality from the standard libraries. I tried to ensure that only old deprecated functionality was removed. This is removing lots and lots of deprecated features, so this is a breaking change. Please consult the deprecation messages of the deleted code to see how to migrate code forward if it still needs migration. [breaking-change]
2014-10-16Remove libdebug and update tests.Luqman Aden-3/+2
2014-09-16Fallout from renamingAaron Turon-1/+1
2014-06-05Fallout from the libcollections movementAlex Crichton-1/+1
2014-05-27Move std::{reflect,repr,Poly} to a libdebug crateAlex Crichton-0/+1
This commit moves reflection (as well as the {:?} format modifier) to a new libdebug crate, all of which is marked experimental. This is a breaking change because it now requires the debug crate to be explicitly linked if the :? format qualifier is used. This means that any code using this feature will have to add `extern crate debug;` to the top of the crate. Any code relying on reflection will also need to do this. Closes #12019 [breaking-change]
2014-05-27std: Remove String's to_ownedRicho Healey-2/+2
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-2/+2
[breaking-change]
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-2/+2
2014-03-22Remove outdated and unnecessary std::vec_ng::Vec imports.Huon Wilson-1/+0
(And fix some tests.)
2014-03-21test: Make manual changes to deal with the fallout from removal ofPatrick Walton-3/+4
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
2014-03-21test: Automatically remove all `~[T]` from tests.Patrick Walton-2/+2
2014-02-21Move time out of extra (cc #8784)Arcterus-4/+4
2014-02-14extern mod => extern crateAlex Crichton-2/+2
This was previously implemented, and it just needed a snapshot to go through
2014-02-07moved collections from libextra into libcollectionsHeroesGrave-1/+2
2013-10-24Remove even more of std::ioAlex Crichton-6/+4
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-01remove the `float` typeDaniel Micay-3/+3
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-30bench: Remove usage of fmt!Alex Crichton-4/+4
2013-09-15Remove {uint,int,u64,i64,...}::from_str,from_str_radixblake2-ppc-2/+2
Remove these in favor of the two traits themselves and the wrapper function std::from_str::from_str. Add the function std::num::from_str_radix in the corresponding role for the FromStrRadix trait.
2013-08-30Revert "src/test/bench: restructure"Corey Richardson-0/+66
This reverts commit 14cdc26e8a7794e437946f46df5769362b42acdf.
2013-08-28src/test/bench: restructureCorey Richardson-66/+0
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-2/+2
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-3/+3
this has been replaced by `for`
2013-08-02replace `range` with an external iteratorDaniel Micay-3/+3
2013-07-20Fix warnings in src/test/bench tests. Nobody will ever care.Ben Blum-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+4
2013-05-22test: Update tests to use the new syntax.Patrick Walton-6/+6
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-1/+1
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-1/+1
2013-03-02test: Remove `fn@`, `fn~`, and `fn&` from the test suite. rs=defunPatrick Walton-1/+1
2013-01-31modernize smallintmapDaniel Micay-9/+8
* 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-31move smallintmap to oldsmallintmapDaniel Micay-4/+4
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-04Remove arg vectors from main functions. Stop supporting them.Brian Anderson-1/+2
2012-09-25use + mode for (almost) everything when not using legacy modesNiko Matsakis-1/+1
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-09-05test: "import" -> "use"Patrick Walton-3/+3