@@ -200,7 +200,7 @@ pub struct EagerCallInfo {
200
200
/// Call id of the eager macro's input file (this is the macro file for its fully expanded input).
201
201
arg_id : MacroCallId ,
202
202
error : Option < ExpandError > ,
203
- /// TODO: Doc
203
+ /// The call site span of the eager macro
204
204
span : Span ,
205
205
}
206
206
@@ -211,7 +211,7 @@ pub enum MacroCallKind {
211
211
expand_to : ExpandTo ,
212
212
/// Some if this is a macro call for an eager macro. Note that this is `None`
213
213
/// 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
215
215
// leakage problems here
216
216
eager : Option < Arc < EagerCallInfo > > ,
217
217
} ,
@@ -486,7 +486,7 @@ impl MacroDefId {
486
486
matches ! (
487
487
self . kind,
488
488
MacroDefKind :: BuiltIn ( ..)
489
- | MacroDefKind :: ProcMacro ( _, ProcMacroKind :: FuncLike , _)
489
+ | MacroDefKind :: ProcMacro ( _, ProcMacroKind :: Bang , _)
490
490
| MacroDefKind :: BuiltInEager ( ..)
491
491
| MacroDefKind :: Declarative ( ..)
492
492
)
@@ -808,7 +808,8 @@ impl ExpansionInfo {
808
808
let ( parse, exp_map) = db. parse_macro_expansion ( macro_file) . value ;
809
809
let expanded = InMacroFile { file_id : macro_file, value : parse. syntax_node ( ) } ;
810
810
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 ) ;
812
813
813
814
let def = loc. def . ast_id ( ) . left ( ) . and_then ( |id| {
814
815
let def_tt = match id. to_node ( db) {
0 commit comments