Skip to content

Commit d95ba30

Browse files
committed
Catch an issue missed in rebase
1 parent 55a00a9 commit d95ba30

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustc_metadata/cstore.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ use rustc_data_structures::indexed_vec::IndexVec;
2020
use rustc::util::nodemap::{FxHashMap, NodeMap};
2121

2222
use rustc_data_structures::sync::{Lrc, RwLock, Lock};
23-
use syntax::{ast, attr};
24-
use syntax::edition::Edition;
23+
use syntax::ast;
2524
use syntax::ext::base::SyntaxExtension;
2625
use syntax::symbol::Symbol;
2726
use syntax_pos;

src/librustc_metadata/cstore_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ impl CrateStore for cstore::CStore {
519519
} else if data.name == "proc_macro" &&
520520
self.get_crate_data(id.krate).item_name(id.index) == "quote" {
521521
let ext = SyntaxExtension::ProcMacro(Box::new(::proc_macro::__internal::Quoter),
522-
data.edition());
522+
data.root.edition);
523523
return LoadedMacro::ProcMacro(Lrc::new(ext));
524524
}
525525

0 commit comments

Comments
 (0)