Move CrateConfig from Crate to ParseSess.
This commit is contained in:
@@ -972,10 +972,8 @@ pub fn noop_fold_mod<T: Folder>(Mod {inner, items}: Mod, folder: &mut T) -> Mod
|
||||
}
|
||||
}
|
||||
|
||||
pub fn noop_fold_crate<T: Folder>(Crate {module, attrs, config, mut exported_macros, span}: Crate,
|
||||
pub fn noop_fold_crate<T: Folder>(Crate {module, attrs, mut exported_macros, span}: Crate,
|
||||
folder: &mut T) -> Crate {
|
||||
let config = folder.fold_meta_items(config);
|
||||
|
||||
let mut items = folder.fold_item(P(ast::Item {
|
||||
ident: keywords::Invalid.ident(),
|
||||
attrs: attrs,
|
||||
@@ -1009,7 +1007,6 @@ pub fn noop_fold_crate<T: Folder>(Crate {module, attrs, config, mut exported_mac
|
||||
Crate {
|
||||
module: module,
|
||||
attrs: attrs,
|
||||
config: config,
|
||||
exported_macros: exported_macros,
|
||||
span: span,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user