aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-16 14:10:44 +0100
committerGitHub <[email protected]>2021-06-16 14:10:44 +0100
commit1c034c084d79f20c5208208a891f38bf582433e6 (patch)
tree47a68394dac3c78acd42146dc30eb5a54ff03115 /crates/hir
parent8022e6ad6f951d86ce8f24335053fcaaeb7b296b (diff)
parent354ad29493dbb258c11190abd7632af95c538e16 (diff)
Merge #9299
9299: minor: Filter out non-type completions in the respective completions modules instead r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/lib.rs12
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
2705impl From<ItemInNs> for ScopeDef { 2693impl From<ItemInNs> for ScopeDef {