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:
parent
a980683d1f
commit
11c2c596e4
4 changed files with 42 additions and 34 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue