diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-05 19:24:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-05 19:24:35 +0200 |
| commit | 76d0b794cb5eb618b13e444b2d28ce59ada01efe (patch) | |
| tree | 05ebbb847e7b346e84c5962b1195f197efa489e4 | |
| parent | c1c5ab717efbaf277869616d585aca8de3e47d73 (diff) | |
| parent | 14c846cb05ae00f6769e00c223b87fd8d43fef28 (diff) | |
Rollup merge of #116452 - cjgillot:noassert-erased, r=oli-obk
Do not assert that hidden types don't have erased regions. cc https://github.com/rust-lang/rust/issues/116306 `args` can have erased regions. In the linked issue, this is reached by computing whether a large type is `Freeze` to compute its ABI. I do not have a minimized test to include.
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index 9b8853b42ab..8871de194a6 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -3116,9 +3116,6 @@ fn bind_generator_hidden_types_above<'tcx>( bty.instantiate(tcx, args) }) .collect(); - if considering_regions { - debug_assert!(!hidden_types.has_erased_regions()); - } let bound_vars = tcx.mk_bound_variable_kinds_from_iter(bound_vars.iter().chain( (num_bound_variables..counter).map(|_| ty::BoundVariableKind::Region(ty::BrAnon)), |
