diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-22 14:40:09 +0900 |
|---|---|---|
| committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-22 14:40:09 +0900 |
| commit | 6fdd53b7de6bbc6d8739774bd74febc31ac08e3f (patch) | |
| tree | b8f6f54ef4bb153b6c29ebe2f14774bd4c9402f7 | |
| parent | ef3e3863939217678e5f7e755c4234d224107c64 (diff) | |
| download | rust-6fdd53b7de6bbc6d8739774bd74febc31ac08e3f.tar.gz rust-6fdd53b7de6bbc6d8739774bd74febc31ac08e3f.zip | |
Prefer to use `print_def_path`
| -rw-r--r-- | compiler/rustc_middle/src/ty/print/pretty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs index de24322e07d..9735099a4e1 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -658,7 +658,7 @@ pub trait PrettyPrinter<'tcx>: let span = self.tcx().hir().span(hir_id); p!(write("@{}", self.tcx().sess.source_map().span_to_string(span))); } else { - p!(write("@{}", self.tcx().def_path_str(did))); + p!(write("@"), print_def_path(did, substs)); } } else { p!(print_def_path(did, substs)); @@ -694,7 +694,7 @@ pub trait PrettyPrinter<'tcx>: p!(write("@{}", self.tcx().sess.source_map().span_to_string(span))); } } else { - p!(write("@{}", self.tcx().def_path_str(did))); + p!(write("@"), print_def_path(did, substs)); } } else { p!(print_def_path(did, substs)); |
