changes from review
This commit is contained in:
parent
c183110cc2
commit
8e92849cbb
11 changed files with 53 additions and 12 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue