Files
rust/compiler/rustc_query_impl
Jacob Pratt c997ea45be Rollup merge of #158163 - xmakro:fix-variances-cycle-recovery-count, r=petrochenkov
Fix too-short variance slice in `variances_of` cycle recovery

This changes the cycle-error fallback in `variances_of` to size the slice the same way the provider does in [`variance/solve.rs:117`](32ea3615cc/compiler/rustc_hir_analysis/src/variance/solve.rs (L117)).

This can otherwise ICE under the parallel frontend in `relate_args_with_variances` for items that inherit their generics from a parent (like a tuple struct constructor). See https://github.com/rust-lang/rust/issues/154560#issuecomment-4749155547
2026-06-27 22:13:50 -04:00
..