We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfe679 commit 33c358cCopy full SHA for 33c358c
tests/mir-opt/inline/issue_106141.rs
@@ -1,6 +1,9 @@
1
-// skip-filecheck
+// Verify that we do not ICE inlining a function which uses _0 as an index.
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
+
4
pub fn outer() -> usize {
5
+ // CHECK-LABEL: fn outer(
6
+ // CHECK: = {{.*}}[_0];
7
inner()
8
}
9
@@ -10,6 +13,8 @@ fn index() -> usize {
10
13
11
14
#[inline]
12
15
fn inner() -> usize {
16
+ // CHECK-LABEL: fn inner(
17
18
let buffer = &[true];
19
let index = index();
20
if buffer[index] {
0 commit comments