diff options
author | Aleksey Kladov <[email protected]> | 2019-07-19 13:53:16 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-19 14:09:32 +0100 |
commit | f9d9e0a1f75b48813fe816a1e2a6c30146a36503 (patch) | |
tree | 254e13d1f0fb3072d02ba58f918de043a5cfcded /crates/ra_ide_api/src/name_ref_kind.rs | |
parent | e4188899962774713707629d4e15255e3bc9c85e (diff) |
several highlighting cleanups
* make stuff more type-safe by using `BindPat` instead of just `Pat`
* don't add `mut` into binding hash
* reset shadow counter when we enter a function
Diffstat (limited to 'crates/ra_ide_api/src/name_ref_kind.rs')
-rw-r--r-- | crates/ra_ide_api/src/name_ref_kind.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/name_ref_kind.rs b/crates/ra_ide_api/src/name_ref_kind.rs index 6832acf5d..f7db6c826 100644 --- a/crates/ra_ide_api/src/name_ref_kind.rs +++ b/crates/ra_ide_api/src/name_ref_kind.rs | |||
@@ -11,7 +11,7 @@ pub enum NameRefKind { | |||
11 | AssocItem(hir::ImplItem), | 11 | AssocItem(hir::ImplItem), |
12 | Def(hir::ModuleDef), | 12 | Def(hir::ModuleDef), |
13 | SelfType(hir::Ty), | 13 | SelfType(hir::Ty), |
14 | Pat(AstPtr<ast::Pat>), | 14 | Pat(AstPtr<ast::BindPat>), |
15 | SelfParam(AstPtr<ast::SelfParam>), | 15 | SelfParam(AstPtr<ast::SelfParam>), |
16 | GenericParam(u32), | 16 | GenericParam(u32), |
17 | } | 17 | } |