add missing def kinds

This commit is contained in:
Aleksey Kladov 2019-01-11 20:28:10 +03:00
parent 2d3940d0ab
commit 0f9c350812

View file

@ -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,
}