rust/compiler/rustc_trait_selection/src
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
..
error_reporting Rollup merge of #136205 - compiler-errors:len-3, r=BoxyUwU 2025-01-29 15:29:41 +01:00
errors introduce LateParamRegionKind 2024-12-18 16:05:44 +01:00
solve Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
traits Rollup merge of #136205 - compiler-errors:len-3, r=BoxyUwU 2025-01-29 15:29:41 +01:00
errors.rs Rollup merge of #133382 - mu001999-contrib:diag/fnitem, r=lcnr 2025-01-29 15:29:27 +01:00
infer.rs Suggest Semicolon in Incorrect Repeat Expressions 2024-12-21 02:30:50 +00:00
lib.rs consistently handle global where-bounds 2024-12-17 08:50:47 +01:00
regions.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
solve.rs impossible obligations check fast path 2024-10-10 06:09:50 -04:00