Skip to content

Commit fc58479

Browse files
author
Keegan McAllister
committed
Stop using macro_escape as an inner attribute
In preparation for the rename.
1 parent 73806dd commit fc58479

File tree

32 files changed

+55
-47
lines changed

32 files changed

+55
-47
lines changed

src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pub use vec_map::VecMap;
5454
// Needed for the vec! macro
5555
pub use alloc::boxed;
5656

57+
#[macro_escape]
5758
mod macros;
5859

5960
pub mod binary_heap;

src/libcollections/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
/// Creates a `std::vec::Vec` containing the arguments.
1412
// NOTE: remove after the next snapshot
1513
#[cfg(stage0)]

src/libcore/lib.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,20 @@
6262
#![feature(default_type_params, unboxed_closures, associated_types)]
6363
#![deny(missing_docs)]
6464

65+
#[macro_escape]
6566
mod macros;
6667

67-
#[path = "num/float_macros.rs"] mod float_macros;
68-
#[path = "num/int_macros.rs"] mod int_macros;
69-
#[path = "num/uint_macros.rs"] mod uint_macros;
68+
#[path = "num/float_macros.rs"]
69+
#[macro_escape]
70+
mod float_macros;
71+
72+
#[path = "num/int_macros.rs"]
73+
#[macro_escape]
74+
mod int_macros;
75+
76+
#[path = "num/uint_macros.rs"]
77+
#[macro_escape]
78+
mod uint_macros;
7079

7180
#[path = "num/int.rs"] pub mod int;
7281
#[path = "num/i8.rs"] pub mod i8;

src/libcore/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
/// Entry point of task panic, for details, see std::macros
1412
#[macro_export]
1513
macro_rules! panic {

src/libcore/num/float_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
1211
#![doc(hidden)]
1312

1413
macro_rules! assert_approx_eq {

src/libcore/num/int_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
1211
#![doc(hidden)]
1312

1413
macro_rules! int_module { ($T:ty, $bits:expr) => (

src/libcore/num/uint_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
1211
#![doc(hidden)]
1312

1413
macro_rules! uint_module { ($T:ty, $T_SIGNED:ty, $bits:expr) => (

src/libcoretest/num/int_macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
macro_rules! int_module (($T:ty, $T_i:ident) => (
1412
#[cfg(test)]
1513
mod tests {

src/libcoretest/num/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ use core::num::{NumCast, cast};
1414
use core::ops::{Add, Sub, Mul, Div, Rem};
1515
use core::kinds::Copy;
1616

17+
#[macro_escape]
1718
mod int_macros;
19+
1820
mod i8;
1921
mod i16;
2022
mod i32;
2123
mod i64;
2224
mod int;
25+
26+
#[macro_escape]
2327
mod uint_macros;
28+
2429
mod u8;
2530
mod u16;
2631
mod u32;

src/libcoretest/num/uint_macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
macro_rules! uint_module (($T:ty, $T_i:ident) => (
1412
#[cfg(test)]
1513
mod tests {

src/liblog/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ use regex::Regex;
183183

184184
use directive::LOG_LEVEL_NAMES;
185185

186+
#[macro_escape]
186187
pub mod macros;
188+
187189
mod directive;
188190

189191
/// Maximum logging level of a module that can be specified. Common logging

src/liblog/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
//! Logging macros
1212
13-
#![macro_escape]
14-
1513
/// The standard logging macro
1614
///
1715
/// This macro will generically log over a provided level (of type u32) with a

src/librustc/lint/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
//! example) requires more effort. See `emit_lint` and `GatherNodeLevels`
2929
//! in `context.rs`.
3030
31-
#![macro_escape]
32-
3331
pub use self::Level::*;
3432
pub use self::LintSource::*;
3533

src/librustc_trans/trans/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
macro_rules! unpack_datum {
1412
($bcx: ident, $inp: expr) => (
1513
{

src/librustc_trans/trans/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ pub use self::base::trans_crate;
1616
pub use self::context::CrateContext;
1717
pub use self::common::gensym_name;
1818

19-
mod doc;
19+
#[macro_escape]
2020
mod macros;
21+
22+
mod doc;
2123
mod inline;
2224
mod monomorphize;
2325
mod controlflow;

src/librustdoc/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ use rustc::session::search_paths::SearchPaths;
4949
// reexported from `clean` so it can be easily updated with the mod itself
5050
pub use clean::SCHEMA_VERSION;
5151

52+
#[macro_escape]
53+
pub mod externalfiles;
54+
5255
pub mod clean;
5356
pub mod core;
5457
pub mod doctree;
55-
#[macro_escape]
56-
pub mod externalfiles;
5758
pub mod fold;
5859
pub mod html {
5960
pub mod highlight;

src/libstd/bitflags.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![experimental]
12-
#![macro_escape]
1312

1413
//! A typesafe bitmask flag generator.
1514

src/libstd/io/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,12 @@ pub mod net;
282282
pub mod pipe;
283283
pub mod process;
284284
pub mod stdio;
285-
pub mod test;
286285
pub mod timer;
287286
pub mod util;
288287

288+
#[macro_escape]
289+
pub mod test;
290+
289291
/// The default buffer size for various I/O operations
290292
// libuv recommends 64k buffers to maximize throughput
291293
// https://groups.google.com/forum/#!topic/libuv/oQO1HJAIDdA

src/libstd/io/test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
//! Various utility functions useful for writing I/O tests
1212
13-
#![macro_escape]
14-
1513
use prelude::v1::*;
1614

1715
use libc;

src/libstd/lib.rs

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,15 @@ pub use unicode::char;
172172

173173
/* Exported macros */
174174

175-
#[cfg(stage0)] pub mod macros_stage0;
176-
#[cfg(not(stage0))] pub mod macros;
175+
#[cfg(stage0)]
176+
#[macro_escape]
177+
pub mod macros_stage0;
178+
179+
#[cfg(not(stage0))]
180+
#[macro_escape]
181+
pub mod macros;
182+
183+
#[macro_escape]
177184
pub mod bitflags;
178185

179186
mod rtdeps;
@@ -185,9 +192,17 @@ pub mod prelude;
185192

186193
/* Primitive types */
187194

188-
#[path = "num/float_macros.rs"] mod float_macros;
189-
#[path = "num/int_macros.rs"] mod int_macros;
190-
#[path = "num/uint_macros.rs"] mod uint_macros;
195+
#[path = "num/float_macros.rs"]
196+
#[macro_escape]
197+
mod float_macros;
198+
199+
#[path = "num/int_macros.rs"]
200+
#[macro_escape]
201+
mod int_macros;
202+
203+
#[path = "num/uint_macros.rs"]
204+
#[macro_escape]
205+
mod uint_macros;
191206

192207
#[path = "num/int.rs"] pub mod int;
193208
#[path = "num/i8.rs"] pub mod i8;
@@ -214,7 +229,9 @@ pub mod num;
214229

215230
/* Runtime and platform support */
216231

232+
#[macro_escape]
217233
pub mod thread_local;
234+
218235
pub mod c_str;
219236
pub mod c_vec;
220237
pub mod dynamic_lib;

src/libstd/macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
//! library.
1616
1717
#![experimental]
18-
#![macro_escape]
1918

2019
/// The entry point for panic of Rust tasks.
2120
///

src/libstd/macros_stage0.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
//! library.
1616
1717
#![experimental]
18-
#![macro_escape]
1918

2019
/// The entry point for panic of Rust tasks.
2120
///

src/libstd/num/float_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![experimental]
12-
#![macro_escape]
1312
#![doc(hidden)]
1413

1514
macro_rules! assert_approx_eq {

src/libstd/num/int_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![experimental]
12-
#![macro_escape]
1312
#![doc(hidden)]
1413

1514
macro_rules! int_module { ($T:ty) => (

src/libstd/num/uint_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![experimental]
12-
#![macro_escape]
1312
#![doc(hidden)]
1413
#![allow(unsigned_negation)]
1514

src/libstd/rt/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
//! These macros call functions which are only accessible in the `rt` module, so
1414
//! they aren't defined anywhere outside of the `rt` module.
1515
16-
#![macro_escape]
17-
1816
macro_rules! rterrln {
1917
($fmt:expr $($arg:tt)*) => ( {
2018
::rt::util::dumb_print(format_args!(concat!($fmt, "\n") $($arg)*))

src/libstd/thread_local/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
//! will want to make use of some form of **interior mutability** through the
3535
//! `Cell` or `RefCell` types.
3636
37-
#![macro_escape]
3837
#![stable]
3938

4039
use prelude::v1::*;
4140

4241
use cell::UnsafeCell;
4342

43+
#[macro_escape]
4444
pub mod scoped;
4545

4646
// Sure wish we had macro hygiene, no?

src/libstd/thread_local/scoped.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
//! });
3939
//! ```
4040
41-
#![macro_escape]
4241
#![unstable = "scoped TLS has yet to have wide enough use to fully consider \
4342
stabilizing its interface"]
4443

src/libsyntax/diagnostics/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
#[macro_export]
1412
macro_rules! register_diagnostic {
1513
($code:tt, $description:tt) => (__register_diagnostic! { $code, $description });

src/libsyntax/parse/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ use std::num::Int;
2424
use std::str;
2525
use std::iter;
2626

27-
pub mod lexer;
27+
#[macro_escape]
2828
pub mod parser;
29+
30+
pub mod lexer;
2931
pub mod token;
3032
pub mod attr;
3133

src/libsyntax/parse/parser.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![macro_escape]
12-
1311
pub use self::PathParsingMode::*;
1412
use self::ItemOrViewItem::*;
1513

src/test/auxiliary/lint_stability.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![crate_type = "lib"]
1212

1313
#![feature(macro_rules)]
14-
#![macro_escape]
1514

1615
#[deprecated]
1716
pub fn deprecated() {}

0 commit comments

Comments
 (0)