unconditional_panic
array bounds check doesn't work through Deref
#109260
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
L-unconditional_panic
Lint: unconditional_panic
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(Initially reported on URLO)
In the following program:
The out-of-bounds access of
ptr_0[11]
is not flagged at compile time, but the similar access ofarr_0[11]
is.The text was updated successfully, but these errors were encountered: