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(
70
70
}
71
71
72
72
let range = token. text_range ( ) ;
73
- sema. descend_into_macros_no_opaque ( token, false )
73
+ sema. descend_into_macros_no_opaque ( token, false )
74
74
. into_iter ( )
75
75
. filter_map ( |token| {
76
- sema
77
- . token_ancestors_with_macros ( token. value )
76
+ sema. token_ancestors_with_macros ( token. value )
78
77
// When `token` is within a macro call, we can't determine its type. Don't continue
79
78
// this traversal because otherwise we'll end up returning the type of *that* macro
80
79
// call, which is not what we want in general.
@@ -103,7 +102,6 @@ pub(crate) fn goto_type_definition(
103
102
_ => return None ,
104
103
}
105
104
} ;
106
-
107
105
Some ( ty)
108
106
} )
109
107
} )
You can’t perform that action at this time.
0 commit comments