//! def-path. This is used for unit testing the code that generates
//! paths etc in all kinds of annoying scenarios.
-use rustc::hir;
-use rustc::ty::{TyCtxt, Instance};
-use syntax::symbol::{Symbol, sym};
+use rustc::ty::{Instance, TyCtxt};
+use rustc_hir as hir;
+use rustc_span::symbol::{sym, Symbol};
const SYMBOL_NAME: Symbol = sym::rustc_symbol_name;
const DEF_PATH: Symbol = sym::rustc_def_path;
}
impl SymbolNamesTest<'tcx> {
- fn process_attrs(&mut self,
- hir_id: hir::HirId) {
+ fn process_attrs(&mut self, hir_id: hir::HirId) {
let tcx = self.tcx;
let def_id = tcx.hir().local_def_id(hir_id);
for attr in tcx.get_attrs(def_id).iter() {