From 11c2c596e4263787f63bcb7ecd317359f2d704c1 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 20 Feb 2023 10:19:09 +1100 Subject: 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. --- compiler/rustc_traits/src/chalk/lowering.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_traits') diff --git a/compiler/rustc_traits/src/chalk/lowering.rs b/compiler/rustc_traits/src/chalk/lowering.rs index 179ed1220f9..60e22d1001c 100644 --- a/compiler/rustc_traits/src/chalk/lowering.rs +++ b/compiler/rustc_traits/src/chalk/lowering.rs @@ -489,7 +489,7 @@ impl<'tcx> LowerInto<'tcx, Ty<'tcx>> for &chalk_ir::Ty> { TyKind::InferenceVar(_, _) => unimplemented!(), TyKind::Dyn(_) => unimplemented!(), }; - interner.tcx.mk_ty(kind) + interner.tcx.mk_ty_from_kind(kind) } } -- cgit 1.4.1-3-g733a5