diff options
| author | kennytm <kennytm@gmail.com> | 2017-11-29 18:37:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-29 18:37:47 +0800 |
| commit | 0e78c29bea998081cb1880da9fa09e38d46d44a6 (patch) | |
| tree | 3b4b2a5a57516705db3d1b752aa9864ef00f4e78 /src/libstd/sync | |
| parent | 6006c0f35fdcdaa25dfd2cf76438ca2bb5e37d4b (diff) | |
| parent | 6c5f53e65ee5f022611033dbf58c42e26be7f93d (diff) | |
| download | rust-0e78c29bea998081cb1880da9fa09e38d46d44a6.tar.gz rust-0e78c29bea998081cb1880da9fa09e38d46d44a6.zip | |
Rollup merge of #46287 - SimonSapin:stable-constness, r=aturon
Stabilize const-calling existing const-fns in std Fixes #46038
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/once.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index 2ef99525af5..6fd8b6a5bba 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -156,7 +156,6 @@ struct Finish { impl Once { /// Creates a new `Once` value. #[stable(feature = "once_new", since = "1.2.0")] - #[rustc_const_unstable(feature = "const_once_new")] pub const fn new() -> Once { Once { state: AtomicUsize::new(INCOMPLETE), |
