about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/examples/rustc-driver-example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-29 15:29:41 +0100
committerGitHub <noreply@github.com>2025-01-29 15:29:41 +0100
commite8289d801ca096305dfb4a94c33750d96117104b (patch)
treea43f1e99ff4e13fbc41755a9daf565180bb8fc6b /src/doc/rustc-dev-guide/examples/rustc-driver-example.rs
parent936554756b4b04033ede1f66088fc43323953beb (diff)
parent7e68422859f2e6e3514a1af68d0a7ba3629e2553 (diff)
downloadrust-e8289d801ca096305dfb4a94c33750d96117104b.tar.gz
rust-e8289d801ca096305dfb4a94c33750d96117104b.zip
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
Diffstat (limited to 'src/doc/rustc-dev-guide/examples/rustc-driver-example.rs')
0 files changed, 0 insertions, 0 deletions