1
Fork 0

changes from review

This commit is contained in:
Kyle Matsuda 2023-02-14 14:17:38 -07:00
parent c183110cc2
commit 8e92849cbb
11 changed files with 53 additions and 12 deletions

View file

@ -1167,7 +1167,13 @@ impl<'tcx> InferCtxt<'tcx> {
val: ConstVariableValue::Unknown { universe: self.universe() },
});
self.tcx
.mk_const(const_var_id, self.tcx.type_of(param.def_id).subst_identity())
.mk_const(
const_var_id,
self.tcx
.type_of(param.def_id)
.no_bound_vars()
.expect("const parameter types cannot be generic"),
)
.into()
}
}