@@ -54,7 +54,7 @@ impl base::BangProcMacro for BangProcMacro {
54
54
) -> Result < TokenStream , ErrorGuaranteed > {
55
55
let _timer =
56
56
ecx. sess . prof . generic_activity_with_arg_recorder ( "expand_proc_macro" , |recorder| {
57
- recorder. record_arg_with_span ( ecx. expansion_descr ( ) , span) ;
57
+ recorder. record_arg_with_span ( ecx. sess . source_map ( ) , ecx . expansion_descr ( ) , span) ;
58
58
} ) ;
59
59
60
60
let proc_macro_backtrace = ecx. ecfg . proc_macro_backtrace ;
@@ -85,7 +85,7 @@ impl base::AttrProcMacro for AttrProcMacro {
85
85
) -> Result < TokenStream , ErrorGuaranteed > {
86
86
let _timer =
87
87
ecx. sess . prof . generic_activity_with_arg_recorder ( "expand_proc_macro" , |recorder| {
88
- recorder. record_arg_with_span ( ecx. expansion_descr ( ) , span) ;
88
+ recorder. record_arg_with_span ( ecx. sess . source_map ( ) , ecx . expansion_descr ( ) , span) ;
89
89
} ) ;
90
90
91
91
let proc_macro_backtrace = ecx. ecfg . proc_macro_backtrace ;
@@ -134,7 +134,11 @@ impl MultiItemModifier for DeriveProcMacro {
134
134
let stream = {
135
135
let _timer =
136
136
ecx. sess . prof . generic_activity_with_arg_recorder ( "expand_proc_macro" , |recorder| {
137
- recorder. record_arg_with_span ( ecx. expansion_descr ( ) , span) ;
137
+ recorder. record_arg_with_span (
138
+ ecx. sess . source_map ( ) ,
139
+ ecx. expansion_descr ( ) ,
140
+ span,
141
+ ) ;
138
142
} ) ;
139
143
let proc_macro_backtrace = ecx. ecfg . proc_macro_backtrace ;
140
144
let strategy = exec_strategy ( ecx) ;
0 commit comments