pub const MACRO_ARGUMENTS: Option<&'static str> = Some("macro arguments");
-// A variant of 'panictry!' that works on a Vec<Diagnostic> 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) => {
impl Globals {
fn new(edition: Edition) -> Globals {
Globals {
- // We have no idea how many attributes their will be, so just
+ // We have no idea how many attributes there will be, so just
// initiate the vectors with 0 bits. We'll grow them as necessary.
used_attrs: Lock::new(GrowableBitSet::new_empty()),
known_attrs: Lock::new(GrowableBitSet::new_empty()),
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;