Use deeply_normalize_with_skipped_universes in when processing type outlives
This commit is contained in:
parent
bf3c6c5bed
commit
0e16885abd
2 changed files with 10 additions and 2 deletions
|
@ -24,12 +24,13 @@ impl<'tcx> InferCtxtRegionExt<'tcx> for InferCtxt<'tcx> {
|
|||
let ty = self.resolve_vars_if_possible(ty);
|
||||
|
||||
if self.next_trait_solver() {
|
||||
crate::solve::deeply_normalize(
|
||||
crate::solve::deeply_normalize_with_skipped_universes(
|
||||
self.at(
|
||||
&ObligationCause::dummy_with_span(origin.span()),
|
||||
outlives_env.param_env,
|
||||
),
|
||||
ty,
|
||||
vec![None; ty.outer_exclusive_binder().as_usize()],
|
||||
)
|
||||
.map_err(|_| ty)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue