diff options
| author | Keegan McAllister <kmcallister@mozilla.com> | 2014-12-18 20:48:26 -0800 |
|---|---|---|
| committer | Keegan McAllister <kmcallister@mozilla.com> | 2015-01-05 12:00:57 -0800 |
| commit | 5bf385be6a5ce267ac7cd9d1725178488e33131c (patch) | |
| tree | 7cfa66cf0c1acd0e6cf29efe0d77deb29d3a8946 /src/libcoretest | |
| parent | fc584793237c388e9dca76ef406d1af34e453fe2 (diff) | |
| download | rust-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/libcoretest')
| -rw-r--r-- | src/libcoretest/num/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcoretest/num/mod.rs b/src/libcoretest/num/mod.rs index 01868675c76..f86c85f8216 100644 --- a/src/libcoretest/num/mod.rs +++ b/src/libcoretest/num/mod.rs @@ -14,7 +14,8 @@ use core::num::{NumCast, cast}; use core::ops::{Add, Sub, Mul, Div, Rem}; use core::kinds::Copy; -#[macro_escape] +#[cfg_attr(stage0, macro_escape)] +#[cfg_attr(not(stage0), macro_use)] mod int_macros; mod i8; @@ -23,7 +24,8 @@ mod i32; mod i64; mod int; -#[macro_escape] +#[cfg_attr(stage0, macro_escape)] +#[cfg_attr(not(stage0), macro_use)] mod uint_macros; mod u8; |
