use log::debug;
-use rustc::hir::def_id::DefIndex;
use rustc::hir::map::definitions::*;
+use rustc_expand::expand::AstFragment;
+use rustc_hir::def_id::DefIndex;
+use rustc_span::hygiene::ExpnId;
+use rustc_span::symbol::{kw, sym};
+use rustc_span::Span;
use syntax::ast::*;
-use syntax::symbol::{kw, sym};
use syntax::token::{self, Token};
use syntax::visit;
-use syntax_expand::expand::AstFragment;
-use syntax_pos::hygiene::ExpnId;
-use syntax_pos::Span;
crate fn collect_definitions(
definitions: &mut Definitions,
// Pick the def data. This need not be unique, but the more
// information we encapsulate into, the better
let def_data = match &i.kind {
- ItemKind::Impl(..) => DefPathData::Impl,
+ ItemKind::Impl { .. } => DefPathData::Impl,
ItemKind::Mod(..) if i.ident.name == kw::Invalid => {
return visit::walk_item(self, i);
}