about summary refs log tree commit diff
path: root/compiler/rustc_traits
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-02-20 10:19:09 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-02-24 07:33:00 +1100
commit11c2c596e4263787f63bcb7ecd317359f2d704c1 (patch)
tree7dc312f79121ba1c73abb6e80f6009b74a3243a6 /compiler/rustc_traits
parenta980683d1fc1152fa795e197bd39b315b5745aab (diff)
downloadrust-11c2c596e4263787f63bcb7ecd317359f2d704c1.tar.gz
rust-11c2c596e4263787f63bcb7ecd317359f2d704c1.zip
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.
Diffstat (limited to 'compiler/rustc_traits')
-rw-r--r--compiler/rustc_traits/src/chalk/lowering.rs2
1 files changed, 1 insertions, 1 deletions
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<RustInterner<'tcx>> {
             TyKind::InferenceVar(_, _) => unimplemented!(),
             TyKind::Dyn(_) => unimplemented!(),
         };
-        interner.tcx.mk_ty(kind)
+        interner.tcx.mk_ty_from_kind(kind)
     }
 }