1
Fork 0

normalizes-to disable infer var check

This commit is contained in:
lcnr 2024-10-21 16:25:42 +02:00
parent 3e33bda032
commit b64b25b99e
4 changed files with 74 additions and 14 deletions

View file

@ -298,6 +298,7 @@ fn equate_impl_headers<'tcx>(
}
/// The result of [fn impl_intersection_has_impossible_obligation].
#[derive(Debug)]
enum IntersectionHasImpossibleObligations<'tcx> {
Yes,
No {
@ -328,6 +329,7 @@ enum IntersectionHasImpossibleObligations<'tcx> {
/// of the two impls above to be empty.
///
/// Importantly, this works even if there isn't a `impl !Error for MyLocalType`.
#[instrument(level = "debug", skip(selcx), ret)]
fn impl_intersection_has_impossible_obligation<'a, 'cx, 'tcx>(
selcx: &mut SelectionContext<'cx, 'tcx>,
obligations: &'a [PredicateObligation<'tcx>],