about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-20 23:44:59 -0400
committerGitHub <noreply@github.com>2017-03-20 23:44:59 -0400
commit17656ab328b641605f671a8a1ae1cc2de0638bfb (patch)
tree9539dfd97f4d2ea81d62e9e2633669bdb445cd56 /src/libstd/lib.rs
parent03235ccbfeca05f03588827a186465170fc9aad8 (diff)
parent60c1c961c73cd347e389d7961a7ba82396103029 (diff)
downloadrust-17656ab328b641605f671a8a1ae1cc2de0638bfb.tar.gz
rust-17656ab328b641605f671a8a1ae1cc2de0638bfb.zip
Rollup merge of #40556 - cramertj:stabilize-pub-restricted, r=petrochenkov
Stabilize pub(restricted)

Fix https://github.com/rust-lang/rust/issues/32409
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 3da5d4b94dd..064144dcd68 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -283,7 +283,6 @@
 #![feature(placement_in_syntax)]
 #![feature(placement_new_protocol)]
 #![feature(prelude_import)]
-#![feature(pub_restricted)]
 #![feature(rand)]
 #![feature(raw)]
 #![feature(repr_simd)]
@@ -309,6 +308,7 @@
 #![feature(vec_push_all)]
 #![feature(zero_one)]
 #![cfg_attr(test, feature(update_panic_count))]
+#![cfg_attr(stage0, feature(pub_restricted))]
 
 // Explicitly import the prelude. The compiler uses this same unstable attribute
 // to import the prelude implicitly when building crates that depend on std.