about summary refs log tree commit diff
path: root/src/libgetopts
diff options
context:
space:
mode:
authorawlnx <alecweber1994@gmail.com>2015-03-05 11:53:51 -0500
committerawlnx <alecweber1994@gmail.com>2015-03-05 11:53:51 -0500
commit951ef9d1f105984383b9795c56f7ab8fdd681b63 (patch)
tree07f8991d6e07970ca2a34e9666d00217110b0680 /src/libgetopts
parentb4c965ee803a4521d8b4575f634e036f93e408f3 (diff)
fix for new attributes failing. issue #22964
Diffstat (limited to 'src/libgetopts')
-rw-r--r--src/libgetopts/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs
index 6240b0e6afd..c33c48476d5 100644
--- a/src/libgetopts/lib.rs
+++ b/src/libgetopts/lib.rs
@@ -77,6 +77,9 @@
 //! }
 //! ```
 
+
+// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
+#![cfg_attr(stage0, feature(custom_attribute))]
 #![crate_name = "getopts"]
 #![unstable(feature = "rustc_private",
             reason = "use the crates.io `getopts` library instead")]