X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibsyntax%2Flib.rs;h=7be6e6c7e1876ecad9015494c3d6763b040e7831;hb=83260d5c4370679f145d5cebb471f91e81771ee2;hp=3fa13f08d3ab650e5bdc4104634268281d2fd163;hpb=4a870aaee497a4cf76d8590ad465fcffbcc6cbb3;p=rust.git diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 3fa13f08d3a..7be6e6c7e18 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -31,23 +31,6 @@ pub const MACRO_ARGUMENTS: Option<&'static str> = Some("macro arguments"); -// A variant of 'panictry!' that works on a Vec instead of a single DiagnosticBuilder. -macro_rules! panictry_buffer { - ($handler:expr, $e:expr) => ({ - use std::result::Result::{Ok, Err}; - use errors::FatalError; - match $e { - Ok(e) => e, - Err(errs) => { - for e in errs { - $handler.emit_diagnostic(&e); - } - FatalError.raise() - } - } - }) -} - #[macro_export] macro_rules! unwrap_or { ($opt:expr, $default:expr) => { @@ -112,9 +95,9 @@ pub mod util { pub mod ast; pub mod attr; +pub mod expand; pub mod source_map; -#[macro_use] -pub mod config; +#[macro_use] pub mod config; pub mod entry; pub mod feature_gate; pub mod mut_visit;