-// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
//! Used by plugin crates to tell `rustc` about the plugins they provide.
use rustc::lint::{EarlyLintPassObject, LateLintPassObject, LintId, Lint};
edition,
}
}
- IdentTT(ext, _, allow_internal_unstable) => {
- IdentTT(ext, Some(self.krate_span), allow_internal_unstable)
+ IdentTT { expander, span: _, allow_internal_unstable } => {
+ IdentTT { expander, span: Some(self.krate_span), allow_internal_unstable }
}
_ => extension,
}));
self.register_syntax_extension(Symbol::intern(name), NormalTT {
expander: Box::new(expander),
def_info: None,
- allow_internal_unstable: false,
+ allow_internal_unstable: Vec::new(),
allow_internal_unsafe: false,
local_inner_macros: false,
unstable_feature: None,