diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-28 15:56:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-28 15:56:07 +0000 |
commit | c692e07b4ff648fea742c53c0dbad57d6f652068 (patch) | |
tree | d186df8fb298272eaa4ce14d2fccc854413bc566 /crates/ra_ide_db/src/imports_locator.rs | |
parent | 93f632ca4e7bb7fd54830e456d629a4948a92337 (diff) | |
parent | 56ce34c6a7ec0b4426d4cb25e10512c7efaf6f06 (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.rs | 3 |
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 | } |