]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/macros.rs
Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik
[rust.git] / src / liballoc / macros.rs
index aadc5d68ac1c8f6cf5a9930220855f3ecbc7baa2..eb3410078513de3e25a945caaf58645462afab1f 100644 (file)
@@ -34,7 +34,8 @@
 #[cfg(not(test))]
 #[macro_export]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[allow_internal_unstable]
+#[cfg_attr(not(stage0), allow_internal_unstable(box_syntax))]
+#[cfg_attr(stage0, allow_internal_unstable)]
 macro_rules! vec {
     ($elem:expr; $n:expr) => (
         $crate::vec::from_elem($elem, $n)