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

@ -489,7 +489,7 @@ impl<'tcx> LowerInto<'tcx, Ty<'tcx>> for &chalk_ir::Ty<RustInterner<'tcx>> {
TyKind::InferenceVar(_, _) => unimplemented!(),
TyKind::Dyn(_) => unimplemented!(),
};
interner.tcx.mk_ty(kind)
interner.tcx.mk_ty_from_kind(kind)
}
}