File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ use hir_expand::{
25
25
builtin:: { BuiltinFnLikeExpander , EagerExpander } ,
26
26
db:: ExpandDatabase ,
27
27
files:: { FileRangeWrapper , HirFileRange , InRealFile } ,
28
- inert_attr_macro:: find_builtin_attr_idx,
29
28
mod_path:: { ModPath , PathKind } ,
30
29
name:: AsName ,
31
30
} ;
@@ -953,13 +952,6 @@ impl<'db> SemanticsImpl<'db> {
953
952
let Some ( item) = ast:: Item :: cast ( ancestor) else {
954
953
return false ;
955
954
} ;
956
- // Optimization to skip the semantic check.
957
- if item. attrs ( ) . all ( |attr| {
958
- attr. simple_name ( )
959
- . is_some_and ( |attr| find_builtin_attr_idx ( & Symbol :: intern ( & attr) ) . is_some ( ) )
960
- } ) {
961
- return false ;
962
- }
963
955
self . with_ctx ( |ctx| {
964
956
if ctx. item_to_macro_call ( token. with_value ( & item) ) . is_some ( ) {
965
957
return true ;
You can’t perform that action at this time.
0 commit comments