about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-11-26 23:19:18 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-11-26 23:43:44 +0100
commit6c5f53e65ee5f022611033dbf58c42e26be7f93d (patch)
tree9da24c4b5df8b773ff53d9fa207fdeb3aebdea42 /src/libstd/sync
parent827cb0d61e22eb6d5c9c5e8e8d05b07108a9968b (diff)
downloadrust-6c5f53e65ee5f022611033dbf58c42e26be7f93d.tar.gz
rust-6c5f53e65ee5f022611033dbf58c42e26be7f93d.zip
Stabilize const-calling existing const-fns in std
Fixes #46038
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/once.rs1
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),