File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/tools/rust-analyzer/crates/ide/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,10 @@ pub(crate) fn goto_type_definition(
7070 }
7171
7272 let range = token. text_range ( ) ;
73- sema. descend_into_macros_no_opaque ( token, false )
73+ sema. descend_into_macros_no_opaque ( token, false )
7474 . into_iter ( )
7575 . filter_map ( |token| {
76- sema
77- . token_ancestors_with_macros ( token. value )
76+ sema. token_ancestors_with_macros ( token. value )
7877 // When `token` is within a macro call, we can't determine its type. Don't continue
7978 // this traversal because otherwise we'll end up returning the type of *that* macro
8079 // call, which is not what we want in general.
@@ -103,7 +102,6 @@ pub(crate) fn goto_type_definition(
103102 _ => return None ,
104103 }
105104 } ;
106-
107105 Some ( ty)
108106 } )
109107 } )
You can’t perform that action at this time.
0 commit comments