]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/lib.rs
Rollup merge of #23056 - awlnx:master, r=nrc
[rust.git] / src / liballoc / lib.rs
index b1fdf139b0c51c739ac10325c00f93857eb538f8..5c9a42a8a71747534e2dfce3e98ca1efe6726272 100644 (file)
@@ -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)]