// module we could have false positives
if !(did1.is_local() || did2.is_local()) && did1.krate != did2.krate {
let abs_path = |def_id| {
- PrintCx::new(self.tcx, AbsolutePathPrinter)
- .print_def_path(def_id, None, Namespace::TypeNS, iter::empty())
+ PrintCx::with(self.tcx, AbsolutePathPrinter, |mut cx| {
+ cx.print_def_path(def_id, None, Namespace::TypeNS, iter::empty())
+ })
};
// We compare strings because DefPath can be different