You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spurious test failure codegen-llvm/issue-107681-unwrap_unchecked.rs #158500
The issue is probably due to randomize-layout in the codegen-llvm suite.
The test was made more imprecise in a way that is probably unnecessary, while being made more precise in ways that are brittle in the face of randomize-layout.
The line
// CHECK: [[INNER:%.*]] = load ptr, ptr %x
is not resilient to the load sometimes being from %x and sometimes being from a pointer assigned to %0 that is itself GEP'd from %x
Honestly, it should not have been trouble, so it's quite fine. We probably need to try to figure out how to make the layout randomization not engage for codegen-llvm tests, but the Zulip thread also describes why that is not a quick 1-minute fix.
Activity
workingjubilee commentedon Jun 27, 2026
To summarize our current findings from that discussion thread:
#158067 was the PR that introduced the sporadic failures
cc @TimNN @dianqk
The issue is probably due to randomize-layout in the codegen-llvm suite.
The test was made more imprecise in a way that is probably unnecessary, while being made more precise in ways that are brittle in the face of randomize-layout.
The line
is not resilient to the load sometimes being from
%xand sometimes being from a pointer assigned to%0that is itself GEP'd from%xRevert posted at #158502
Auto merge of #158502 - saethlin:revert-flaky-codegen-test-fix, r=Jon…
Rollup merge of rust-lang#158502 - saethlin:revert-flaky-codegen-test…
Auto merge of #158502 - saethlin:revert-flaky-codegen-test-fix, r=Jon…
TimNN commentedon Jun 28, 2026
Thank you for the revert and sorry for the trouble, I wasn't aware of the Layout randomization part.
workingjubilee commentedon Jun 28, 2026
Honestly, it should not have been trouble, so it's quite fine. We probably need to try to figure out how to make the layout randomization not engage for codegen-llvm tests, but the Zulip thread also describes why that is not a quick 1-minute fix.