1
Fork 0

change usages of type_of to bound_type_of

This commit is contained in:
Kyle Matsuda 2023-02-06 17:48:12 -07:00
parent 9a7cc6c32f
commit d822b97a27
136 changed files with 385 additions and 262 deletions

View file

@ -1166,7 +1166,9 @@ impl<'tcx> InferCtxt<'tcx> {
origin,
val: ConstVariableValue::Unknown { universe: self.universe() },
});
self.tcx.mk_const(const_var_id, self.tcx.type_of(param.def_id)).into()
self.tcx
.mk_const(const_var_id, self.tcx.bound_type_of(param.def_id).subst_identity())
.into()
}
}
}