aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/from_source.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_hir/src/from_source.rs b/crates/ra_hir/src/from_source.rs
index 68e59fc1e..4acc038e4 100644
--- a/crates/ra_hir/src/from_source.rs
+++ b/crates/ra_hir/src/from_source.rs
@@ -184,6 +184,11 @@ impl TypeParam {
184 let res = match_ast! { 184 let res = match_ast! {
185 match it { 185 match it {
186 ast::FnDef(value) => { Function::from_source(db, InFile { value, file_id})?.id.into() }, 186 ast::FnDef(value) => { Function::from_source(db, InFile { value, file_id})?.id.into() },
187 ast::StructDef(value) => { Struct::from_source(db, InFile { value, file_id})?.id.into() },
188 ast::EnumDef(value) => { Enum::from_source(db, InFile { value, file_id})?.id.into() },
189 ast::TraitDef(value) => { Trait::from_source(db, InFile { value, file_id})?.id.into() },
190 ast::TypeAliasDef(value) => { TypeAlias::from_source(db, InFile { value, file_id})?.id.into() },
191 ast::ImplBlock(value) => { ImplBlock::from_source(db, InFile { value, file_id})?.id.into() },
187 _ => return None, 192 _ => return None,
188 } 193 }
189 }; 194 };