Skip to content

Commit

Permalink
Don't print the whole crate disambiguator value in debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed May 31, 2017
1 parent f854f8b commit 9da83a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc/hir/map/definitions.rs
Expand Up @@ -320,7 +320,9 @@ impl DefPath {

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

for component in &self.data {
write!(s,
Expand Down

0 comments on commit 9da83a8

Please sign in to comment.