Built-in indexing doesn't ensure bounds checks stay valid #65909
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
For example, the bounds check for
x[1]
in the following code is invalidated by the assignment in the next indexer.The text was updated successfully, but these errors were encountered: