From 0f9c350812e37b3cf2a1fcfb3c60a78122d60bf7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 11 Jan 2019 20:28:10 +0300 Subject: add missing def kinds --- crates/ra_hir/src/code_model_api.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 098c7f40b..3f882a736 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs @@ -328,3 +328,23 @@ impl Function { db.infer(self.def_id) } } + +#[derive(Debug, Clone, PartialEq, Eq, Hash)] +pub struct Const { + pub(crate) def_id: DefId, +} + +#[derive(Debug, Clone, PartialEq, Eq, Hash)] +pub struct Static { + pub(crate) def_id: DefId, +} + +#[derive(Debug, Clone, PartialEq, Eq, Hash)] +pub struct Trait { + pub(crate) def_id: DefId, +} + +#[derive(Debug, Clone, PartialEq, Eq, Hash)] +pub struct Type { + pub(crate) def_id: DefId, +} -- cgit v1.2.3