1
Fork 0

Uplift TypeRelation and Relate

This commit is contained in:
Michael Goulet 2024-06-04 16:02:36 -04:00
parent 82ef3ad980
commit 91274c84b9
34 changed files with 1114 additions and 866 deletions

View file

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