about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-26 22:19:40 +0000
committerbors <bors@rust-lang.org>2018-12-26 22:19:40 +0000
commit79bbce488e115f9a553e932832991a14b7bfe20f (patch)
tree4d7554bc4a411d4ec75b506c9d6f477af3e93e43 /src/liballoc
parenta7be40c65ae8ace467c9c40b0a22642973e31a13 (diff)
parent1e8261861385a5cabc7df2ecab7132ae5226fae0 (diff)
downloadrust-79bbce488e115f9a553e932832991a14b7bfe20f.tar.gz
rust-79bbce488e115f9a553e932832991a14b7bfe20f.zip
Auto merge of #57124 - sunjay:stable_duration_as_u128, r=Centril
Stabilize Duration::{as_millis, as_micros, as_nanos}

Fixes #50202. :tada:

This is the stabilization PR for the `duration_as_u128` feature. I have never made one of these before so please let me know if I missed a step. I followed the [guide in the Rust Forge](https://forge.rust-lang.org/stabilization-guide.html) and also found some old stabilization PRs ([1](https://github.com/rust-lang/rust/pull/57002), [2](https://github.com/rust-lang/rust/pull/56207)) for similar features to base my work on.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/benches/vec_deque_append.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/benches/vec_deque_append.rs b/src/liballoc/benches/vec_deque_append.rs
index 327998b6f44..2db8fbe1309 100644
--- a/src/liballoc/benches/vec_deque_append.rs
+++ b/src/liballoc/benches/vec_deque_append.rs
@@ -1,4 +1,4 @@
-#![feature(duration_as_u128)]
+#![cfg_attr(stage0, feature(duration_as_u128))]
 use std::{collections::VecDeque, time::Instant};
 
 const VECDEQUE_LEN: i32 = 100000;