@@ -200,7 +200,7 @@ pub struct EagerCallInfo {
200200 /// Call id of the eager macro's input file (this is the macro file for its fully expanded input).
201201 arg_id : MacroCallId ,
202202 error : Option < ExpandError > ,
203- /// TODO: Doc
203+ /// The call site span of the eager macro
204204 span : Span ,
205205}
206206
@@ -211,7 +211,7 @@ pub enum MacroCallKind {
211211 expand_to : ExpandTo ,
212212 /// Some if this is a macro call for an eager macro. Note that this is `None`
213213 /// for the eager input macro file.
214- // FIXME: This is being interned, subtrees can vary quickly differ just slightly causing
214+ // FIXME: This is being interned, subtrees can vary quickly differing just slightly causing
215215 // leakage problems here
216216 eager : Option < Arc < EagerCallInfo > > ,
217217 } ,
@@ -486,7 +486,7 @@ impl MacroDefId {
486486 matches ! (
487487 self . kind,
488488 MacroDefKind :: BuiltIn ( ..)
489- | MacroDefKind :: ProcMacro ( _, ProcMacroKind :: FuncLike , _)
489+ | MacroDefKind :: ProcMacro ( _, ProcMacroKind :: Bang , _)
490490 | MacroDefKind :: BuiltInEager ( ..)
491491 | MacroDefKind :: Declarative ( ..)
492492 )
@@ -808,7 +808,8 @@ impl ExpansionInfo {
808808 let ( parse, exp_map) = db. parse_macro_expansion ( macro_file) . value ;
809809 let expanded = InMacroFile { file_id : macro_file, value : parse. syntax_node ( ) } ;
810810
811- let ( macro_arg, _, _) = db. macro_arg ( macro_file. macro_call_id ) ;
811+ let ( macro_arg, _, _) =
812+ db. macro_arg_considering_derives ( macro_file. macro_call_id , & loc. kind ) ;
812813
813814 let def = loc. def . ast_id ( ) . left ( ) . and_then ( |id| {
814815 let def_tt = match id. to_node ( db) {
0 commit comments