From 5ea0e0d1aa47924ba60d21164b3612fb79716eb3 Mon Sep 17 00:00:00 2001 From: ljedrz Date: Tue, 13 Nov 2018 16:15:16 +0100 Subject: [PATCH] hir: simplify fmt::Debug for hir::Path --- src/librustc/hir/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index dda94bd26bed..2dd2deee2616 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -330,7 +330,7 @@ impl Path { 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) } }