@@ -54,7 +54,7 @@ impl base::BangProcMacro for BangProcMacro {
5454 ) -> Result < TokenStream , ErrorGuaranteed > {
5555 let _timer =
5656 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) ;
5858 } ) ;
5959
6060 let proc_macro_backtrace = ecx. ecfg . proc_macro_backtrace ;
@@ -85,7 +85,7 @@ impl base::AttrProcMacro for AttrProcMacro {
8585 ) -> Result < TokenStream , ErrorGuaranteed > {
8686 let _timer =
8787 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) ;
8989 } ) ;
9090
9191 let proc_macro_backtrace = ecx. ecfg . proc_macro_backtrace ;
@@ -134,7 +134,11 @@ impl MultiItemModifier for DeriveProcMacro {
134134 let stream = {
135135 let _timer =
136136 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+ ) ;
138142 } ) ;
139143 let proc_macro_backtrace = ecx. ecfg . proc_macro_backtrace ;
140144 let strategy = exec_strategy ( ecx) ;
0 commit comments