Rename mk_{ty,region} as mk_{ty,region}_from_kind.

To discourage accidental use -- there are more specific `mk_*` functions
for all `Ty` and `Region` kinds.
This commit is contained in:
Nicholas Nethercote
2023-02-20 10:19:09 +11:00
parent a980683d1f
commit 11c2c596e4
4 changed files with 42 additions and 34 deletions

View File

@@ -513,7 +513,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for Ty<'tcx> {
| ty::Foreign(..) => return Ok(self),
};
Ok(if *self.kind() == kind { self } else { folder.interner().mk_ty(kind) })
Ok(if *self.kind() == kind { self } else { folder.interner().mk_ty_from_kind(kind) })
}
}