In preparation for the rename.
// Needed for the vec! macro
pub use alloc::boxed;
+#[macro_escape]
mod macros;
pub mod binary_heap;
// 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)]
#![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;
// 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 {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![macro_escape]
#![doc(hidden)]
macro_rules! assert_approx_eq {
// 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) => (
// 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) => (
// 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 {
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;
// 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 {
use directive::LOG_LEVEL_NAMES;
+#[macro_escape]
pub mod macros;
+
mod directive;
/// Maximum logging level of a module that can be specified. Common logging
//! Logging macros
-#![macro_escape]
-
/// The standard logging macro
///
/// This macro will generically log over a provided level (of type u32) with a
//! example) requires more effort. See `emit_lint` and `GatherNodeLevels`
//! in `context.rs`.
-#![macro_escape]
-
pub use self::Level::*;
pub use self::LintSource::*;
// 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) => (
{
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;
// 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;
// except according to those terms.
#![experimental]
-#![macro_escape]
//! A typesafe bitmask flag generator.
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
//! Various utility functions useful for writing I/O tests
-#![macro_escape]
-
use prelude::v1::*;
use libc;
/* 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;
//! library.
#![experimental]
-#![macro_escape]
/// The entry point for panic of Rust tasks.
///
//! library.
#![experimental]
-#![macro_escape]
/// The entry point for panic of Rust tasks.
///
// except according to those terms.
#![experimental]
-#![macro_escape]
#![doc(hidden)]
macro_rules! assert_approx_eq {
// except according to those terms.
#![experimental]
-#![macro_escape]
#![doc(hidden)]
macro_rules! int_module { ($T:ty) => (
// except according to those terms.
#![experimental]
-#![macro_escape]
#![doc(hidden)]
#![allow(unsigned_negation)]
//! 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)*))
//! 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?
//! });
//! ```
-#![macro_escape]
#![unstable = "scoped TLS has yet to have wide enough use to fully consider \
stabilizing its interface"]
// 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 });
use std::str;
use std::iter;
-pub mod lexer;
+#[macro_escape]
pub mod parser;
+
+pub mod lexer;
pub mod token;
pub mod attr;
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![macro_escape]
-
pub use self::PathParsingMode::*;
use self::ItemOrViewItem::*;
#![crate_type = "lib"]
#![feature(macro_rules)]
-#![macro_escape]
#[deprecated]
pub fn deprecated() {}