File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/libsyntax_ext/deriving Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,19 @@ fn hygienic_type_parameter(item: &Annotatable, base: &str) -> String {
338
338
339
339
/// Constructs an expression that calls an intrinsic
340
340
fn call_intrinsic ( cx : & ExtCtxt ,
341
- span : Span ,
341
+ mut span : Span ,
342
342
intrinsic : & str ,
343
343
args : Vec < P < ast:: Expr > > )
344
344
-> P < ast:: Expr > {
345
+ span. expn_id = cx. codemap ( ) . record_expansion ( codemap:: ExpnInfo {
346
+ call_site : span,
347
+ callee : codemap:: NameAndSpan {
348
+ format : codemap:: MacroAttribute ( intern ( "derive" ) ) ,
349
+ span : Some ( span) ,
350
+ allow_internal_unstable : true ,
351
+ } ,
352
+ } ) ;
353
+
345
354
let path = cx. std_path ( & [ "intrinsics" , intrinsic] ) ;
346
355
let call = cx. expr_call_global ( span, path, args) ;
347
356
You can’t perform that action at this time.
0 commit comments