Skip to content

Commit 9da83a8

Browse files
Don't print the whole crate disambiguator value in debug output
1 parent f854f8b commit 9da83a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/hir/map/definitions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,9 @@ impl DefPath {
320320

321321
s.push_str(&tcx.original_crate_name(self.krate).as_str());
322322
s.push_str("/");
323-
s.push_str(&tcx.crate_disambiguator(self.krate).as_str());
323+
// Don't print the whole crate disambiguator. That's just annoying in
324+
// debug output.
325+
s.push_str(&tcx.crate_disambiguator(self.krate).as_str()[..7]);
324326

325327
for component in &self.data {
326328
write!(s,

0 commit comments

Comments
 (0)