about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-12-18 20:48:26 -0800
committerKeegan McAllister <kmcallister@mozilla.com>2015-01-05 12:00:57 -0800
commit5bf385be6a5ce267ac7cd9d1725178488e33131c (patch)
tree7cfa66cf0c1acd0e6cf29efe0d77deb29d3a8946 /src/libcore
parentfc584793237c388e9dca76ef406d1af34e453fe2 (diff)
downloadrust-5bf385be6a5ce267ac7cd9d1725178488e33131c.tar.gz
rust-5bf385be6a5ce267ac7cd9d1725178488e33131c.zip
Rename macro_escape to macro_use
In the future we want to support

    #[macro_use(foo, bar)]
    mod macros;

but it's not an essential part of macro reform.  Reserve the syntax for now.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/lib.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index 588421dfa10..aff0065c527 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -62,19 +62,23 @@
 #![feature(default_type_params, unboxed_closures, associated_types)]
 #![deny(missing_docs)]
 
-#[macro_escape]
+#[cfg_attr(stage0, macro_escape)]
+#[cfg_attr(not(stage0), macro_use)]
 mod macros;
 
 #[path = "num/float_macros.rs"]
-#[macro_escape]
+#[cfg_attr(stage0, macro_escape)]
+#[cfg_attr(not(stage0), macro_use)]
 mod float_macros;
 
 #[path = "num/int_macros.rs"]
-#[macro_escape]
+#[cfg_attr(stage0, macro_escape)]
+#[cfg_attr(not(stage0), macro_use)]
 mod int_macros;
 
 #[path = "num/uint_macros.rs"]
-#[macro_escape]
+#[cfg_attr(stage0, macro_escape)]
+#[cfg_attr(not(stage0), macro_use)]
 mod uint_macros;
 
 #[path = "num/int.rs"]  pub mod int;