about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-10-30 19:39:07 +0000
committerMichael Goulet <michael@errs.io>2022-11-01 20:41:47 +0000
commite24df2778fb7a19dfe386ad563ea216a816db94a (patch)
treec4ff15b9e18a76568744c0ab4dd216e917071830 /compiler/rustc_middle/src
parente70cbef0c5db81079f4b5643380d6047ccd34a10 (diff)
downloadrust-e24df2778fb7a19dfe386ad563ea216a816db94a.tar.gz
rust-e24df2778fb7a19dfe386ad563ea216a816db94a.zip
Format dyn Trait better in type_name intrinsic
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/print/pretty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs
index f07c60af248..fab85c39d25 100644
--- a/compiler/rustc_middle/src/ty/print/pretty.rs
+++ b/compiler/rustc_middle/src/ty/print/pretty.rs
@@ -1137,7 +1137,7 @@ pub trait PrettyPrinter<'tcx>:
         //
         // To avoid causing instabilities in compiletest
         // output, sort the auto-traits alphabetically.
-        auto_traits.sort_by_cached_key(|did| self.tcx().def_path_str(*did));
+        auto_traits.sort_by_cached_key(|did| with_no_trimmed_paths!(self.tcx().def_path_str(*did)));
 
         for def_id in auto_traits {
             if !first {