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(
7373 _ => continue ,
7474 } ,
7575 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 ,
7878 } ,
7979 MirSpan :: BindingId ( b) => {
8080 match source_map
8181 . patterns_for_binding ( b)
8282 . iter ( )
8383 . find_map ( |p| source_map. pat_syntax ( * p) . ok ( ) )
8484 {
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 ,
8787 }
8888 }
8989 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 ,
9292 } ,
9393 MirSpan :: Unknown => continue ,
9494 } ;
You can’t perform that action at this time.
0 commit comments