about summary refs log tree commit diff
path: root/src/liballoc
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/liballoc
parentb4c965ee803a4521d8b4575f634e036f93e408f3 (diff)
downloadrust-951ef9d1f105984383b9795c56f7ab8fdd681b63.tar.gz
rust-951ef9d1f105984383b9795c56f7ab8fdd681b63.zip
fix for new attributes failing. issue #22964
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 82bd13475c7..828e6b8dd76 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -56,6 +56,8 @@
 //! The [`heap`](heap/index.html) module defines the low-level interface to the
 //! default global allocator. It is not compatible with the libc allocator API.
 
+// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
+#![cfg_attr(stage0, feature(custom_attribute))]
 #![crate_name = "alloc"]
 #![unstable(feature = "alloc")]
 #![feature(staged_api)]