Closed
Description
rust/compiler/rustc_trait_selection/src/traits/select/mod.rs
Lines 2117 to 2144 in f90a4ff
We currently emit a delay_span_bug
if match_impl
in rematch_impl
fails. Considering that we should only call rematch_impl
for impls for which we've already called match_impl
before, rematch_impl
should always succeed.
There are currently 2 tests which hit that error case:
src/test/ui/impl-trait/issues/issue-62742.rs
src/test/ui/impl-trait/issues/issue-84073.rs
We should figure out why they fail and either fix that, or add a comment to rematch_impl
explaining what's going on.