diff options
| author | bors <bors@rust-lang.org> | 2014-11-12 22:57:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-12 22:57:16 +0000 |
| commit | 5745e419502d753deb3f42026fa35e015bc5d3fb (patch) | |
| tree | 087cc690130ffb3c4603f755c64cb3b5ed76e095 /src/rustllvm/RustWrapper.cpp | |
| parent | 7a86aa83eea27529b1b8855cd4e2c8ce7bf787ef (diff) | |
| parent | fcd05ed99ff0aa6157e427a698ac53dbc450135f (diff) | |
| download | rust-5745e419502d753deb3f42026fa35e015bc5d3fb.tar.gz rust-5745e419502d753deb3f42026fa35e015bc5d3fb.zip | |
auto merge of #18858 : alexcrichton/rust/remove-time, r=jakub
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
