]> git.lizzy.rs Git - rust.git/commitdiff
hir: simplify fmt::Debug for hir::Path
authorljedrz <ljedrz@gmail.com>
Tue, 13 Nov 2018 15:15:16 +0000 (16:15 +0100)
committerljedrz <ljedrz@gmail.com>
Tue, 13 Nov 2018 16:34:51 +0000 (17:34 +0100)
src/librustc/hir/mod.rs

index dda94bd26bed16120bdfe9f75c6d218b428e4f25..2dd2deee26165612c4254bd608e105126c7287ca 100644 (file)
@@ -330,7 +330,7 @@ pub fn is_global(&self) -> bool {
 
 impl fmt::Debug for Path {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        write!(f, "path({})", print::to_string(print::NO_ANN, |s| s.print_path(self, false)))
+        write!(f, "path({})", self)
     }
 }