Remove tcx.mk_const_var
... `tcx.mk_const` can now be used instead
This commit is contained in:
@@ -1065,7 +1065,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
||||
}
|
||||
|
||||
pub fn next_const_var(&self, ty: Ty<'tcx>, origin: ConstVariableOrigin) -> ty::Const<'tcx> {
|
||||
self.tcx.mk_const_var(self.next_const_var_id(origin), ty)
|
||||
self.tcx.mk_const(self.next_const_var_id(origin), ty)
|
||||
}
|
||||
|
||||
pub fn next_const_var_in_universe(
|
||||
@@ -1079,7 +1079,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
||||
.borrow_mut()
|
||||
.const_unification_table()
|
||||
.new_key(ConstVarValue { origin, val: ConstVariableValue::Unknown { universe } });
|
||||
self.tcx.mk_const_var(vid, ty)
|
||||
self.tcx.mk_const(vid, ty)
|
||||
}
|
||||
|
||||
pub fn next_const_var_id(&self, origin: ConstVariableOrigin) -> ConstVid<'tcx> {
|
||||
@@ -1195,7 +1195,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
||||
origin,
|
||||
val: ConstVariableValue::Unknown { universe: self.universe() },
|
||||
});
|
||||
self.tcx.mk_const_var(const_var_id, self.tcx.type_of(param.def_id)).into()
|
||||
self.tcx.mk_const(const_var_id, self.tcx.type_of(param.def_id)).into()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user