[MIR-opt] Broken MIR for vec indexing with MIR inlining #67590
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.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The mir inliner doesn't seem to inline
<Vec<()> as Index<usize>>::index
when not using the patched sysroot of rustc_codegen_cranelift, so this problem doesn't trigger with the normal sysroot.Optimized MIR
The
_12 = &(*_11)[_4];
is invalid because_4
is of typeRange<usize>
.@rustbot modify label: +A-mir +C-bug +requires-nightly
The text was updated successfully, but these errors were encountered: