rust/compiler/rustc_trait_selection/src/error_reporting
Matthias Krüger e8289d801c
Rollup merge of #136205 - compiler-errors:len-3, r=BoxyUwU
Properly check that array length is valid type during built-in unsizing in index

This results in duplicated errors, but this class of errors is not new; in general, we aren't really equipped to detect cases where a WF error due to a field type would be shadowed by the parent struct of that field also not being WF.

This also adds a note for these types of mismatches to make it clear that this is due to an array type.

Fixes #134352

r? boxyuwu
2025-01-29 15:29:41 +01:00
..
infer Rollup merge of #133382 - mu001999-contrib:diag/fnitem, r=lcnr 2025-01-29 15:29:27 +01:00
traits Rollup merge of #136205 - compiler-errors:len-3, r=BoxyUwU 2025-01-29 15:29:41 +01:00
mod.rs Swap Vec<PredicateObligation> to type alias 2024-10-12 15:17:08 +01:00