pub mod external_data;
#[macro_use]
pub mod span_utils;
+mod sig;
use rustc::hir;
use rustc::hir::def::Def;
if let ty::TyProjection(proj) = ty.sty {
for item in self.tcx.associated_items(proj.trait_ref.def_id) {
if item.kind == ty::AssociatedKind::Type {
- if item.name == proj.item_name {
+ if item.name == proj.item_name(self.tcx) {
return Def::AssociatedTy(item.def_id);
}
}