1
Fork 0

Inline UnifyKey::index and UnifyKey::from_index

This commit is contained in:
Tomasz Miąsko 2022-02-10 00:00:00 +00:00
parent 5569757491
commit cd37638c14
4 changed files with 12 additions and 0 deletions

View file

@ -416,6 +416,7 @@ impl<'tcx> ut::UnifyKey for TyVidEqKey<'tcx> {
fn index(&self) -> u32 {
self.vid.as_u32()
}
#[inline]
fn from_index(i: u32) -> Self {
TyVidEqKey::from(ty::TyVid::from_u32(i))
}