diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-11-13 16:15:16 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-11-13 17:34:51 +0100 |
| commit | 5ea0e0d1aa47924ba60d21164b3612fb79716eb3 (patch) | |
| tree | c89535687818d98015cf8e1bdb467c4358d5322d | |
| parent | 58a2267c15d7214e8ef9548ce95f2aad4502fbd2 (diff) | |
| download | rust-5ea0e0d1aa47924ba60d21164b3612fb79716eb3.tar.gz rust-5ea0e0d1aa47924ba60d21164b3612fb79716eb3.zip | |
hir: simplify fmt::Debug for hir::Path
| -rw-r--r-- | src/librustc/hir/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index dda94bd26be..2dd2deee261 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) } } |
