aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db/src/imports_locator.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-28 15:56:07 +0000
committerGitHub <[email protected]>2020-02-28 15:56:07 +0000
commitc692e07b4ff648fea742c53c0dbad57d6f652068 (patch)
treed186df8fb298272eaa4ce14d2fccc854413bc566 /crates/ra_ide_db/src/imports_locator.rs
parent93f632ca4e7bb7fd54830e456d629a4948a92337 (diff)
parent56ce34c6a7ec0b4426d4cb25e10512c7efaf6f06 (diff)
Merge #3367
3367: Fix highlighting of const patterns r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_db/src/imports_locator.rs')
-rw-r--r--crates/ra_ide_db/src/imports_locator.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_ide_db/src/imports_locator.rs b/crates/ra_ide_db/src/imports_locator.rs
index e590d2a5c..e5fc3c470 100644
--- a/crates/ra_ide_db/src/imports_locator.rs
+++ b/crates/ra_ide_db/src/imports_locator.rs
@@ -59,6 +59,7 @@ impl<'a> ImportsLocator<'a> {
59 } else { 59 } else {
60 candidate_node 60 candidate_node
61 }; 61 };
62 classify_name(&self.sema, &ast::Name::cast(candidate_name_node)?) 62 let name = ast::Name::cast(candidate_name_node)?;
63 classify_name(&self.sema, &name)?.into_definition()
63 } 64 }
64} 65}