]> git.lizzy.rs Git - rust.git/commitdiff
Stop using macro_escape as an inner attribute
authorKeegan McAllister <kmcallister@mozilla.com>
Fri, 19 Dec 2014 04:09:57 +0000 (20:09 -0800)
committerKeegan McAllister <kmcallister@mozilla.com>
Mon, 5 Jan 2015 20:00:57 +0000 (12:00 -0800)
In preparation for the rename.

32 files changed:
src/libcollections/lib.rs
src/libcollections/macros.rs
src/libcore/lib.rs
src/libcore/macros.rs
src/libcore/num/float_macros.rs
src/libcore/num/int_macros.rs
src/libcore/num/uint_macros.rs
src/libcoretest/num/int_macros.rs
src/libcoretest/num/mod.rs
src/libcoretest/num/uint_macros.rs
src/liblog/lib.rs
src/liblog/macros.rs
src/librustc/lint/mod.rs
src/librustc_trans/trans/macros.rs
src/librustc_trans/trans/mod.rs
src/librustdoc/lib.rs
src/libstd/bitflags.rs
src/libstd/io/mod.rs
src/libstd/io/test.rs
src/libstd/lib.rs
src/libstd/macros.rs
src/libstd/macros_stage0.rs
src/libstd/num/float_macros.rs
src/libstd/num/int_macros.rs
src/libstd/num/uint_macros.rs
src/libstd/rt/macros.rs
src/libstd/thread_local/mod.rs
src/libstd/thread_local/scoped.rs
src/libsyntax/diagnostics/macros.rs
src/libsyntax/parse/mod.rs
src/libsyntax/parse/parser.rs
src/test/auxiliary/lint_stability.rs

index 27ab791b60425d60a7c3f243657c0a626ec273ee..9214ec7e65b4c63f747df6535ee1a8fc4052f65b 100644 (file)
@@ -54,6 +54,7 @@
 // Needed for the vec! macro
 pub use alloc::boxed;
 
+#[macro_escape]
 mod macros;
 
 pub mod binary_heap;
index 0dbc71269a6701150272309f8c62d0e4e06eb281..0c5929e8661d6d22870fbab4f215118834675009 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 /// Creates a `std::vec::Vec` containing the arguments.
 // NOTE: remove after the next snapshot
 #[cfg(stage0)]
index 0cda2e4a9c692eb886300dfcd99aacd46252c3bc..588421dfa10ba2b5d806a7e0f788fca2455a8641 100644 (file)
 #![feature(default_type_params, unboxed_closures, associated_types)]
 #![deny(missing_docs)]
 
+#[macro_escape]
 mod macros;
 
-#[path = "num/float_macros.rs"] mod float_macros;
-#[path = "num/int_macros.rs"]   mod int_macros;
-#[path = "num/uint_macros.rs"]  mod uint_macros;
+#[path = "num/float_macros.rs"]
+#[macro_escape]
+mod float_macros;
+
+#[path = "num/int_macros.rs"]
+#[macro_escape]
+mod int_macros;
+
+#[path = "num/uint_macros.rs"]
+#[macro_escape]
+mod uint_macros;
 
 #[path = "num/int.rs"]  pub mod int;
 #[path = "num/i8.rs"]   pub mod i8;
index 3b21a68a292f4ac23601a6e1b5a19a43e3580943..a579f9db4161c3a8f04b1742a1f53d1602a7e96a 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 /// Entry point of task panic, for details, see std::macros
 #[macro_export]
 macro_rules! panic {
index 97de61d7e272eebb0becea999c7f39770bda8a96..20300d29fa0c5f1e66e5d255eb79bc5b1c11ed17 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
 #![doc(hidden)]
 
 macro_rules! assert_approx_eq {
index 522eab9180c86bce7bc2c85d575ccb143c922630..61cd8cbf7c10153da90d5f0da64168ae845e5e1a 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
 #![doc(hidden)]
 
 macro_rules! int_module { ($T:ty, $bits:expr) => (
index 82eca0d46598204a08f0aa63ce0f447207f76f10..535765840a0fcacc345b9065311456d9e644bdf7 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
 #![doc(hidden)]
 
 macro_rules! uint_module { ($T:ty, $T_SIGNED:ty, $bits:expr) => (
index 8885d3a52082cd3571fb59e89ea682cbbe01c01a..965ffde70970bb46fa3e0bf444c74c919bc6621d 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 macro_rules! int_module (($T:ty, $T_i:ident) => (
 #[cfg(test)]
 mod tests {
index 651e8640e912a399ac3f7e6a343af4a81e1b7357..01868675c7615f5e7745fb7529d3f522aa02cd47 100644 (file)
 use core::ops::{Add, Sub, Mul, Div, Rem};
 use core::kinds::Copy;
 
+#[macro_escape]
 mod int_macros;
+
 mod i8;
 mod i16;
 mod i32;
 mod i64;
 mod int;
+
+#[macro_escape]
 mod uint_macros;
+
 mod u8;
 mod u16;
 mod u32;
index 2311c19d5573ae0200d571f7c922ff15a237f2a8..eff238c816eee2db9ff98d245bf5676b8d164212 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 macro_rules! uint_module (($T:ty, $T_i:ident) => (
 #[cfg(test)]
 mod tests {
index 0508402ff19d8cd96f79b95bb5de8548d43516a2..61523c6fd0fb924a835ced9421a16c5a3766575d 100644 (file)
 
 use directive::LOG_LEVEL_NAMES;
 
+#[macro_escape]
 pub mod macros;
+
 mod directive;
 
 /// Maximum logging level of a module that can be specified. Common logging
index 233d1c049f4e5e2bcdc69327f0c014a2e4069b98..66682dba7b6df0ff4213bcf873fa7fad5d92533e 100644 (file)
@@ -10,8 +10,6 @@
 
 //! Logging macros
 
-#![macro_escape]
-
 /// The standard logging macro
 ///
 /// This macro will generically log over a provided level (of type u32) with a
index 461a67ba93793cbe7d62124c67480afbe15316cd..e9778fa05ff1787f419d717d979591d8816a69ef 100644 (file)
@@ -28,8 +28,6 @@
 //! example) requires more effort. See `emit_lint` and `GatherNodeLevels`
 //! in `context.rs`.
 
-#![macro_escape]
-
 pub use self::Level::*;
 pub use self::LintSource::*;
 
index ab202975bfc152d8b9b424dffbfd51541d85a7db..77efcc6fb0030d9d768d644c02f30696ec91b09b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 macro_rules! unpack_datum {
     ($bcx: ident, $inp: expr) => (
         {
index 72c4def15a215d69018908b3d5e23f785568b7fb..9b7f282f8bb4b1dee873c25b48d1c2098a29046f 100644 (file)
 pub use self::context::CrateContext;
 pub use self::common::gensym_name;
 
-mod doc;
+#[macro_escape]
 mod macros;
+
+mod doc;
 mod inline;
 mod monomorphize;
 mod controlflow;
index 106fe452f46a6059a931a1973681f516f3454096..a454760c8b5dfbd3bde2c6c78693df0d8c48db88 100644 (file)
 // reexported from `clean` so it can be easily updated with the mod itself
 pub use clean::SCHEMA_VERSION;
 
+#[macro_escape]
+pub mod externalfiles;
+
 pub mod clean;
 pub mod core;
 pub mod doctree;
-#[macro_escape]
-pub mod externalfiles;
 pub mod fold;
 pub mod html {
     pub mod highlight;
index 65cbce08543cc3c84e118f0a4b2fb7ecec1917c6..ed3f2cbe1a1da3f5471e06bb12aa2d0de1f0309d 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![experimental]
-#![macro_escape]
 
 //! A typesafe bitmask flag generator.
 
index 3fa0b5645c5288fba7b0ccc61a802ac7b20e88d8..bf373a145e4cce61f031894d692219fd69f0d840 100644 (file)
 pub mod pipe;
 pub mod process;
 pub mod stdio;
-pub mod test;
 pub mod timer;
 pub mod util;
 
+#[macro_escape]
+pub mod test;
+
 /// The default buffer size for various I/O operations
 // libuv recommends 64k buffers to maximize throughput
 // https://groups.google.com/forum/#!topic/libuv/oQO1HJAIDdA
index 3ce56c907b33d0dc2eceb49ca917fefcbeaa0cb7..6eeef175f73d50844c1d17123385c3cc544a61da 100644 (file)
@@ -10,8 +10,6 @@
 
 //! Various utility functions useful for writing I/O tests
 
-#![macro_escape]
-
 use prelude::v1::*;
 
 use libc;
index eba90d39b4ab566caacbe0362aea1ec9e2991032..5ffd3ebc7ad21730c112c632def5e3739480c699 100644 (file)
 
 /* Exported macros */
 
-#[cfg(stage0)] pub mod macros_stage0;
-#[cfg(not(stage0))] pub mod macros;
+#[cfg(stage0)]
+#[macro_escape]
+pub mod macros_stage0;
+
+#[cfg(not(stage0))]
+#[macro_escape]
+pub mod macros;
+
+#[macro_escape]
 pub mod bitflags;
 
 mod rtdeps;
 
 /* Primitive types */
 
-#[path = "num/float_macros.rs"] mod float_macros;
-#[path = "num/int_macros.rs"]   mod int_macros;
-#[path = "num/uint_macros.rs"]  mod uint_macros;
+#[path = "num/float_macros.rs"]
+#[macro_escape]
+mod float_macros;
+
+#[path = "num/int_macros.rs"]
+#[macro_escape]
+mod int_macros;
+
+#[path = "num/uint_macros.rs"]
+#[macro_escape]
+mod uint_macros;
 
 #[path = "num/int.rs"]  pub mod int;
 #[path = "num/i8.rs"]   pub mod i8;
 
 /* Runtime and platform support */
 
+#[macro_escape]
 pub mod thread_local;
+
 pub mod c_str;
 pub mod c_vec;
 pub mod dynamic_lib;
index e833acb968df32a52fb817ce3e37068f020ffbfc..6bf1ba2355f8df691c6549543b3f85ef00355101 100644 (file)
@@ -15,7 +15,6 @@
 //! library.
 
 #![experimental]
-#![macro_escape]
 
 /// The entry point for panic of Rust tasks.
 ///
index 63fd3209cc0193b619f811373be8f97886f57781..48d62e73e13edeba26b4b7f7907dc6a23716bb65 100644 (file)
@@ -15,7 +15,6 @@
 //! library.
 
 #![experimental]
-#![macro_escape]
 
 /// The entry point for panic of Rust tasks.
 ///
index fd00f15662a72eae099aca9854e2b718597f7cd4..4c52f29b12d763a2433b29af0341b0c29ac1b656 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![experimental]
-#![macro_escape]
 #![doc(hidden)]
 
 macro_rules! assert_approx_eq {
index fce150c4ad1e3676b79509d223c958387e21a486..ebcb20861879c87aebf86b92b17cc568e198ea92 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![experimental]
-#![macro_escape]
 #![doc(hidden)]
 
 macro_rules! int_module { ($T:ty) => (
index 7818f4a053497e22f607bca64dbb5e724d22e74e..08ea1b024c99360264b37d989ac2c099486e1014 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![experimental]
-#![macro_escape]
 #![doc(hidden)]
 #![allow(unsigned_negation)]
 
index 0f35500a04a737469e510e52e7e7212b1c56881c..bbc96d0b19f125fa91ee2297e062e905ed937c76 100644 (file)
@@ -13,8 +13,6 @@
 //! These macros call functions which are only accessible in the `rt` module, so
 //! they aren't defined anywhere outside of the `rt` module.
 
-#![macro_escape]
-
 macro_rules! rterrln {
     ($fmt:expr $($arg:tt)*) => ( {
         ::rt::util::dumb_print(format_args!(concat!($fmt, "\n") $($arg)*))
index d3b4fab96810bce9de4500ef8a9d32e912e6a6db..1ed01c034b53f9b497f7567798dd0bc9f98669e8 100644 (file)
 //! will want to make use of some form of **interior mutability** through the
 //! `Cell` or `RefCell` types.
 
-#![macro_escape]
 #![stable]
 
 use prelude::v1::*;
 
 use cell::UnsafeCell;
 
+#[macro_escape]
 pub mod scoped;
 
 // Sure wish we had macro hygiene, no?
index dc36fda3a020e9000b51ab6d0739417dd1cabf61..714b71d5dbd4e75364c4ee165a32dc8b8eafc10b 100644 (file)
@@ -38,7 +38,6 @@
 //! });
 //! ```
 
-#![macro_escape]
 #![unstable = "scoped TLS has yet to have wide enough use to fully consider \
                stabilizing its interface"]
 
index 3107508a96a5cda2ed6bc0aa400b195579f71344..34a193dffd3db5d1d7079a2bf16fa08f3c7e1aff 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 #[macro_export]
 macro_rules! register_diagnostic {
     ($code:tt, $description:tt) => (__register_diagnostic! { $code, $description });
index 3e4f2c8d4e237319958f397598f2bbabe07090e0..05ed535ee36b1b8e2700675caabb73edb79da6e5 100644 (file)
 use std::str;
 use std::iter;
 
-pub mod lexer;
+#[macro_escape]
 pub mod parser;
+
+pub mod lexer;
 pub mod token;
 pub mod attr;
 
index 62bda20473f7625536a846853c22798b3ee79193..5539abb16b46109aa909981672da650757fe05f5 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![macro_escape]
-
 pub use self::PathParsingMode::*;
 use self::ItemOrViewItem::*;
 
index 82af18b189b68f12f0284aed0e60c53c56cba2b9..5ef1acae6c7ed16f2ce2bf8819ce64074b10b63b 100644 (file)
@@ -11,7 +11,6 @@
 #![crate_type = "lib"]
 
 #![feature(macro_rules)]
-#![macro_escape]
 
 #[deprecated]
 pub fn deprecated() {}