@@ -207,7 +207,7 @@ struct MacroDirective {
207
207
208
208
#[ derive( Clone , Debug , Eq , PartialEq ) ]
209
209
enum MacroDirectiveKind {
210
- FnLike { ast_id : AstIdWithPath < ast:: MacroCall > , legacy : Option < MacroCallId > } ,
210
+ FnLike { ast_id : AstIdWithPath < ast:: MacroCall > } ,
211
211
Derive { ast_id : AstIdWithPath < ast:: Item > } ,
212
212
}
213
213
@@ -783,13 +783,7 @@ impl DefCollector<'_> {
783
783
let mut res = ReachedFixedPoint :: Yes ;
784
784
macros. retain ( |directive| {
785
785
match & directive. kind {
786
- MacroDirectiveKind :: FnLike { ast_id, legacy } => {
787
- if let Some ( call_id) = legacy {
788
- res = ReachedFixedPoint :: No ;
789
- resolved. push ( ( directive. module_id , * call_id, directive. depth ) ) ;
790
- return false ;
791
- }
792
-
786
+ MacroDirectiveKind :: FnLike { ast_id } => {
793
787
match macro_call_as_call_id (
794
788
ast_id,
795
789
self . db ,
@@ -1493,7 +1487,7 @@ impl ModCollector<'_, '_> {
1493
1487
self . def_collector . unexpanded_macros . push ( MacroDirective {
1494
1488
module_id : self . module_id ,
1495
1489
depth : self . macro_depth + 1 ,
1496
- kind : MacroDirectiveKind :: FnLike { ast_id, legacy : None } ,
1490
+ kind : MacroDirectiveKind :: FnLike { ast_id } ,
1497
1491
} ) ;
1498
1492
}
1499
1493
0 commit comments