File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
crates/hir-def/src/nameres Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,7 @@ impl DefCollector<'_> {
1164
1164
let loc: MacroCallLoc = self . db . lookup_intern_macro_call ( call_id) ;
1165
1165
1166
1166
if let MacroDefKind :: ProcMacro ( expander, _, _) = loc. def . kind {
1167
- if expander. is_dummy ( ) || expander . is_disabled ( ) {
1167
+ if expander. is_dummy ( ) {
1168
1168
// If there's no expander for the proc macro (e.g.
1169
1169
// because proc macros are disabled, or building the
1170
1170
// proc macro crate failed), report this and skip
@@ -1177,6 +1177,9 @@ impl DefCollector<'_> {
1177
1177
) ,
1178
1178
) ;
1179
1179
1180
+ res = ReachedFixedPoint :: No ;
1181
+ return false ;
1182
+ } else if expander. is_disabled ( ) {
1180
1183
res = ReachedFixedPoint :: No ;
1181
1184
return false ;
1182
1185
}
You can’t perform that action at this time.
0 commit comments