rust/compiler/rustc_middle
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
..
src Rollup merge of #136205 - compiler-errors:len-3, r=BoxyUwU 2025-01-29 15:29:41 +01:00
Cargo.toml best_blame_constraint: prioritize blaming interesting-seeming constraints 2025-01-06 16:12:11 -08:00
messages.ftl Add TooGeneric variant to LayoutError and emit Unknown one 2025-01-27 00:37:34 +01:00
README.md

For more information about how rustc works, see the rustc dev guide.