You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lcnr opened this issue
Nov 14, 2022
· 0 comments
· Fixed by #104427
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.T-typesRelevant to the types team, which will review and decide on the PR/issue.
"Impl {:?} was matchable against {:?} but now is not",
impl_def_id, obligation
),
);
let value = self.infcx.fresh_substs_for_item(obligation.cause.span, impl_def_id);
let err = self.tcx().ty_error();
let value = value.fold_with(&mutBottomUpFolder{
tcx:self.tcx(),
ty_op: |_| err,
lt_op: |l| l,
ct_op: |c| c,
});
Normalized{ value,obligations:vec![]}
}
}
}
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:
We should figure out why they fail and either fix that, or add a comment to rematch_impl explaining what's going on.
The text was updated successfully, but these errors were encountered:
lcnr
added
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
labels
Nov 14, 2022
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.T-typesRelevant to the types team, which will review and decide on the PR/issue.
rust/compiler/rustc_trait_selection/src/traits/select/mod.rs
Lines 2117 to 2144 in f90a4ff
We currently emit a
delay_span_bug
ifmatch_impl
inrematch_impl
fails. Considering that we should only callrematch_impl
for impls for which we've already calledmatch_impl
before,rematch_impl
should always succeed.There are currently 2 tests which hit that error case:
We should figure out why they fail and either fix that, or add a comment to
rematch_impl
explaining what's going on.The text was updated successfully, but these errors were encountered: