Skip to content

Commit 6fdd53b

Browse files
committed
Prefer to use print_def_path
1 parent ef3e386 commit 6fdd53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ pub trait PrettyPrinter<'tcx>:
658658
let span = self.tcx().hir().span(hir_id);
659659
p!(write("@{}", self.tcx().sess.source_map().span_to_string(span)));
660660
} else {
661-
p!(write("@{}", self.tcx().def_path_str(did)));
661+
p!(write("@"), print_def_path(did, substs));
662662
}
663663
} else {
664664
p!(print_def_path(did, substs));
@@ -694,7 +694,7 @@ pub trait PrettyPrinter<'tcx>:
694694
p!(write("@{}", self.tcx().sess.source_map().span_to_string(span)));
695695
}
696696
} else {
697-
p!(write("@{}", self.tcx().def_path_str(did)));
697+
p!(write("@"), print_def_path(did, substs));
698698
}
699699
} else {
700700
p!(print_def_path(did, substs));

0 commit comments

Comments
 (0)