about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo.net>2017-05-31 15:55:35 +0200
committerMichael Woerister <michaelwoerister@posteo.net>2017-05-31 15:55:35 +0200
commit9da83a8daf159ef1e85da1a018b5204e47e77e6d (patch)
treece3a2ee5a374f53a3436d8f4dd9052ef735771c7
parentf854f8b366c8243ef096f1dcc0e7a9a8f9f05992 (diff)
downloadrust-9da83a8daf159ef1e85da1a018b5204e47e77e6d.tar.gz
rust-9da83a8daf159ef1e85da1a018b5204e47e77e6d.zip
Don't print the whole crate disambiguator value in debug output
-rw-r--r--src/librustc/hir/map/definitions.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/hir/map/definitions.rs b/src/librustc/hir/map/definitions.rs
index 745af53e7a3..ced0f351c9e 100644
--- a/src/librustc/hir/map/definitions.rs
+++ b/src/librustc/hir/map/definitions.rs
@@ -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,