File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/tools/rust-analyzer/crates/ide/src/inlay_hints Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -73,22 +73,22 @@ pub(super) fn hints(
73
73
_ => continue ,
74
74
} ,
75
75
MirSpan :: PatId ( p) => match source_map. pat_syntax ( p) {
76
- Ok ( s) => s. value . text_range ( ) ,
77
- Err ( _ ) => continue ,
76
+ Ok ( s) if !s . file_id . is_macro ( ) => s. value . text_range ( ) ,
77
+ _ => continue ,
78
78
} ,
79
79
MirSpan :: BindingId ( b) => {
80
80
match source_map
81
81
. patterns_for_binding ( b)
82
82
. iter ( )
83
83
. find_map ( |p| source_map. pat_syntax ( * p) . ok ( ) )
84
84
{
85
- Some ( s) => s. value . text_range ( ) ,
86
- None => continue ,
85
+ Some ( s) if !s . file_id . is_macro ( ) => s. value . text_range ( ) ,
86
+ _ => continue ,
87
87
}
88
88
}
89
89
MirSpan :: SelfParam => match source_map. self_param_syntax ( ) {
90
- Some ( s) => s. value . text_range ( ) ,
91
- None => continue ,
90
+ Some ( s) if !s . file_id . is_macro ( ) => s. value . text_range ( ) ,
91
+ _ => continue ,
92
92
} ,
93
93
MirSpan :: Unknown => continue ,
94
94
} ;
You can’t perform that action at this time.
0 commit comments