1
Fork 0

Avoid cloning ast::CrateConfig

This commit is contained in:
Seo Sanghyeon 2014-02-06 02:16:44 +09:00
parent ed885e35fe
commit b653fa0c4a
5 changed files with 12 additions and 15 deletions

View file

@ -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,