Stop using macro_escape as an inner attribute
In preparation for the rename.
This commit is contained in:
parent
73806ddd0f
commit
fc58479323
32 changed files with 55 additions and 47 deletions
|
@ -54,6 +54,7 @@ pub use vec_map::VecMap;
|
|||
// Needed for the vec! macro
|
||||
pub use alloc::boxed;
|
||||
|
||||
#[macro_escape]
|
||||
mod macros;
|
||||
|
||||
pub mod binary_heap;
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -62,11 +62,20 @@
|
|||
#![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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) => (
|
||||
|
|
|
@ -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) => (
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -14,13 +14,18 @@ use core::num::{NumCast, cast};
|
|||
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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -183,7 +183,9 @@ use regex::Regex;
|
|||
|
||||
use directive::LOG_LEVEL_NAMES;
|
||||
|
||||
#[macro_escape]
|
||||
pub mod macros;
|
||||
|
||||
mod directive;
|
||||
|
||||
/// Maximum logging level of a module that can be specified. Common logging
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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::*;
|
||||
|
||||
|
|
|
@ -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) => (
|
||||
{
|
||||
|
|
|
@ -16,8 +16,10 @@ pub use self::base::trans_crate;
|
|||
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;
|
||||
|
|
|
@ -49,11 +49,12 @@ use rustc::session::search_paths::SearchPaths;
|
|||
// 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;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
|
||||
//! A typesafe bitmask flag generator.
|
||||
|
||||
|
|
|
@ -282,10 +282,12 @@ pub mod net;
|
|||
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
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
//! Various utility functions useful for writing I/O tests
|
||||
|
||||
#![macro_escape]
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use libc;
|
||||
|
|
|
@ -172,8 +172,15 @@ pub use unicode::char;
|
|||
|
||||
/* 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;
|
||||
|
@ -185,9 +192,17 @@ pub mod prelude;
|
|||
|
||||
/* 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;
|
||||
|
@ -214,7 +229,9 @@ pub mod num;
|
|||
|
||||
/* Runtime and platform support */
|
||||
|
||||
#[macro_escape]
|
||||
pub mod thread_local;
|
||||
|
||||
pub mod c_str;
|
||||
pub mod c_vec;
|
||||
pub mod dynamic_lib;
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
//! library.
|
||||
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
|
||||
/// The entry point for panic of Rust tasks.
|
||||
///
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
//! library.
|
||||
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
|
||||
/// The entry point for panic of Rust tasks.
|
||||
///
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
#![doc(hidden)]
|
||||
|
||||
macro_rules! assert_approx_eq {
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
#![doc(hidden)]
|
||||
|
||||
macro_rules! int_module { ($T:ty) => (
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
#![doc(hidden)]
|
||||
#![allow(unsigned_negation)]
|
||||
|
||||
|
|
|
@ -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)*))
|
||||
|
|
|
@ -34,13 +34,13 @@
|
|||
//! 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?
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
//! });
|
||||
//! ```
|
||||
|
||||
#![macro_escape]
|
||||
#![unstable = "scoped TLS has yet to have wide enough use to fully consider \
|
||||
stabilizing its interface"]
|
||||
|
||||
|
|
|
@ -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 });
|
||||
|
|
|
@ -24,8 +24,10 @@ use std::num::Int;
|
|||
use std::str;
|
||||
use std::iter;
|
||||
|
||||
pub mod lexer;
|
||||
#[macro_escape]
|
||||
pub mod parser;
|
||||
|
||||
pub mod lexer;
|
||||
pub mod token;
|
||||
pub mod attr;
|
||||
|
||||
|
|
|
@ -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::*;
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#![crate_type = "lib"]
|
||||
|
||||
#![feature(macro_rules)]
|
||||
#![macro_escape]
|
||||
|
||||
#[deprecated]
|
||||
pub fn deprecated() {}
|
||||
|
|
Loading…
Add table
Reference in a new issue