Rollup merge of #91462 - b-naber:use-try-normalize-erasing-regions, r=jackh726
Use try_normalize_erasing_regions in needs_drop Fixes https://github.com/rust-lang/rust/issues/81199 r? ``@jackh726``
This commit is contained in:
commit
f056f0d1b4
4 changed files with 60 additions and 4 deletions
|
@ -147,8 +147,10 @@ where
|
|||
Ok(tys) => tys,
|
||||
};
|
||||
for required_ty in tys {
|
||||
let required =
|
||||
tcx.normalize_erasing_regions(self.param_env, required_ty);
|
||||
let required = tcx
|
||||
.try_normalize_erasing_regions(self.param_env, required_ty)
|
||||
.unwrap_or(required_ty);
|
||||
|
||||
queue_type(self, required);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue