Avoid cloning ast::CrateConfig
This commit is contained in:
parent
ed885e35fe
commit
b653fa0c4a
5 changed files with 12 additions and 15 deletions
|
@ -800,9 +800,8 @@ impl<'a> Folder for MacroExpander<'a> {
|
|||
|
||||
pub fn expand_crate(parse_sess: @parse::ParseSess,
|
||||
loader: &mut CrateLoader,
|
||||
cfg: ast::CrateConfig,
|
||||
c: Crate) -> Crate {
|
||||
let mut cx = ExtCtxt::new(parse_sess, cfg.clone(), loader);
|
||||
let mut cx = ExtCtxt::new(parse_sess, c.config.clone(), loader);
|
||||
let mut expander = MacroExpander {
|
||||
extsbox: syntax_expander_table(),
|
||||
cx: &mut cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue