diff options
author | Lukas Wirth <[email protected]> | 2021-06-16 14:08:44 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-16 14:08:44 +0100 |
commit | 354ad29493dbb258c11190abd7632af95c538e16 (patch) | |
tree | 09418c3c079d2a849cc99aaeddf5feaab39317f3 /crates/hir | |
parent | 79703efc7fddce3f0080d3d97c200d6a2a2ffaa9 (diff) |
Filter out non-type completions in the respective completions modules instead
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/lib.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 5bc0b2338..b7eabaabb 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs | |||
@@ -2688,18 +2688,6 @@ impl ScopeDef { | |||
2688 | 2688 | ||
2689 | items | 2689 | items |
2690 | } | 2690 | } |
2691 | |||
2692 | pub fn is_value_def(&self) -> bool { | ||
2693 | matches!( | ||
2694 | self, | ||
2695 | ScopeDef::ModuleDef(ModuleDef::Function(_)) | ||
2696 | | ScopeDef::ModuleDef(ModuleDef::Variant(_)) | ||
2697 | | ScopeDef::ModuleDef(ModuleDef::Const(_)) | ||
2698 | | ScopeDef::ModuleDef(ModuleDef::Static(_)) | ||
2699 | | ScopeDef::GenericParam(GenericParam::ConstParam(_)) | ||
2700 | | ScopeDef::Local(_) | ||
2701 | ) | ||
2702 | } | ||
2703 | } | 2691 | } |
2704 | 2692 | ||
2705 | impl From<ItemInNs> for ScopeDef { | 2693 | impl From<ItemInNs> for ScopeDef { |