aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-11 17:28:10 +0000
committerAleksey Kladov <[email protected]>2019-01-11 17:28:10 +0000
commit0f9c350812e37b3cf2a1fcfb3c60a78122d60bf7 (patch)
treeffebbf98cbc633732a4a563288cc0e924bb03c5b
parent2d3940d0ab862dbfaed4f4c844faaca6a38e31e9 (diff)
add missing def kinds
-rw-r--r--crates/ra_hir/src/code_model_api.rs20
1 files changed, 20 insertions, 0 deletions
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 {
328 db.infer(self.def_id) 328 db.infer(self.def_id)
329 } 329 }
330} 330}
331
332#[derive(Debug, Clone, PartialEq, Eq, Hash)]
333pub struct Const {
334 pub(crate) def_id: DefId,
335}
336
337#[derive(Debug, Clone, PartialEq, Eq, Hash)]
338pub struct Static {
339 pub(crate) def_id: DefId,
340}
341
342#[derive(Debug, Clone, PartialEq, Eq, Hash)]
343pub struct Trait {
344 pub(crate) def_id: DefId,
345}
346
347#[derive(Debug, Clone, PartialEq, Eq, Hash)]
348pub struct Type {
349 pub(crate) def_id: DefId,
350}