Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 97a7d23

Browse files
committed
refactor: rename to descriptive name
1 parent f441bbf commit 97a7d23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/rust-analyzer/crates/ide/src/goto_definition.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ pub(crate) fn goto_definition(
8282
return Some(RangeInfo::new(original_token.text_range(), navs));
8383
}
8484

85-
if let Some(navs) = find_from_definition(file_id, &original_token, sema) {
85+
if let Some(navs) = find_definition_for_known_blanket_dual_impls(file_id, &original_token, sema)
86+
{
8687
return Some(RangeInfo::new(original_token.text_range(), navs));
8788
}
8889

@@ -131,7 +132,7 @@ pub(crate) fn goto_definition(
131132
}
132133

133134
// If the token is into(), try_into(), parse(), search the definition of From, TryFrom, FromStr.
134-
fn find_from_definition(
135+
fn find_definition_for_known_blanket_dual_impls(
135136
file_id: FileId,
136137
original_token: &SyntaxToken,
137138
sema: &Semantics<'_, RootDatabase>,

0 commit comments

Comments
 (0)