This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ use cranelift_codegen::{
64
64
write:: { FuncWriter , PlainWriter } ,
65
65
} ;
66
66
use rustc_middle:: ty:: layout:: FnAbiOf ;
67
+ use rustc_middle:: ty:: print:: with_no_trimmed_paths;
67
68
use rustc_session:: config:: { OutputFilenames , OutputType } ;
68
69
69
70
use crate :: prelude:: * ;
@@ -79,15 +80,17 @@ impl CommentWriter {
79
80
pub ( crate ) fn new < ' tcx > ( tcx : TyCtxt < ' tcx > , instance : Instance < ' tcx > ) -> Self {
80
81
let enabled = should_write_ir ( tcx) ;
81
82
let global_comments = if enabled {
82
- vec ! [
83
- format!( "symbol {}" , tcx. symbol_name( instance) . name) ,
84
- format!( "instance {:?}" , instance) ,
85
- format!(
86
- "abi {:?}" ,
87
- RevealAllLayoutCx ( tcx) . fn_abi_of_instance( instance, ty:: List :: empty( ) )
88
- ) ,
89
- String :: new( ) ,
90
- ]
83
+ with_no_trimmed_paths ! ( {
84
+ vec![
85
+ format!( "symbol {}" , tcx. symbol_name( instance) . name) ,
86
+ format!( "instance {:?}" , instance) ,
87
+ format!(
88
+ "abi {:?}" ,
89
+ RevealAllLayoutCx ( tcx) . fn_abi_of_instance( instance, ty:: List :: empty( ) )
90
+ ) ,
91
+ String :: new( ) ,
92
+ ]
93
+ } )
91
94
} else {
92
95
vec ! [ ]
93
96
} ;
You can’t perform that action at this time.
0 commit comments