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

@ -557,7 +557,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
ty::INNERMOST,
ty::BoundVar::from_usize(bound_vars.len() - 1),
),
tcx.type_of(param.def_id).subst_identity(),
tcx.type_of(param.def_id)
.no_bound_vars()
.expect("const parameter types cannot be generic"),
)
.into()
}