aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-01-19 19:01:49 +0000
committerLukas Wirth <[email protected]>2021-01-19 19:06:39 +0000
commitbed12833cc4ce7c6b4085ba8dc47fc167c83f8ea (patch)
treea5cf5bb4506fca6ff759980a0f44bb8cff006bcd /crates/hir
parentbf889bcf3be44720ca1c26fccec0374dfc7f3763 (diff)
Show const params in completions
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/code_model.rs2
-rw-r--r--crates/hir/src/semantics.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 2950f08b8..6f48322db 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -2045,7 +2045,7 @@ impl Callable {
2045pub enum ScopeDef { 2045pub enum ScopeDef {
2046 ModuleDef(ModuleDef), 2046 ModuleDef(ModuleDef),
2047 MacroDef(MacroDef), 2047 MacroDef(MacroDef),
2048 GenericParam(TypeParam), 2048 GenericParam(GenericParam),
2049 ImplSelfType(Impl), 2049 ImplSelfType(Impl),
2050 AdtSelfType(Adt), 2050 AdtSelfType(Adt),
2051 Local(Local), 2051 Local(Local),
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs
index ab213e04c..0a30b4f5b 100644
--- a/crates/hir/src/semantics.rs
+++ b/crates/hir/src/semantics.rs
@@ -814,7 +814,7 @@ impl<'a> SemanticsScope<'a> {
814 } 814 }
815 resolver::ScopeDef::ImplSelfType(it) => ScopeDef::ImplSelfType(it.into()), 815 resolver::ScopeDef::ImplSelfType(it) => ScopeDef::ImplSelfType(it.into()),
816 resolver::ScopeDef::AdtSelfType(it) => ScopeDef::AdtSelfType(it.into()), 816 resolver::ScopeDef::AdtSelfType(it) => ScopeDef::AdtSelfType(it.into()),
817 resolver::ScopeDef::GenericParam(id) => ScopeDef::GenericParam(TypeParam { id }), 817 resolver::ScopeDef::GenericParam(id) => ScopeDef::GenericParam(id.into()),
818 resolver::ScopeDef::Local(pat_id) => { 818 resolver::ScopeDef::Local(pat_id) => {
819 let parent = resolver.body_owner().unwrap().into(); 819 let parent = resolver.body_owner().unwrap().into();
820 ScopeDef::Local(Local { parent, pat_id }) 820 ScopeDef::Local(Local { parent, pat_id })