Uplift TypeRelation and Relate
This commit is contained in:
parent
82ef3ad980
commit
91274c84b9
34 changed files with 1114 additions and 866 deletions
|
@ -200,6 +200,12 @@ impl<'tcx> AdtDef<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'tcx> rustc_type_ir::inherent::AdtDef<TyCtxt<'tcx>> for AdtDef<'tcx> {
|
||||
fn def_id(self) -> DefId {
|
||||
self.did()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, HashStable, TyEncodable, TyDecodable)]
|
||||
pub enum AdtKind {
|
||||
Struct,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue