Skip to content

Commit 5ea0e0d

Browse files
committed
hir: simplify fmt::Debug for hir::Path
1 parent 58a2267 commit 5ea0e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc/hir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl Path {
330330

331331
impl fmt::Debug for Path {
332332
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
333-
write!(f, "path({})", print::to_string(print::NO_ANN, |s| s.print_path(self, false)))
333+
write!(f, "path({})", self)
334334
}
335335
}
336336

0 commit comments

Comments
 (0)