Skip to content

Commit 6631650

Browse files
authored
Unrolled build for rust-lang#116591
Rollup merge of rust-lang#116591 - Zalathar:flaky-hash, r=Mark-Simulacrum Don't accidentally detect the commit hash as an `fadd` instruction I've seen some reports of `tests/codegen/target-feature-inline-closure.rs` spuriously failing because it thinks the hash in the rustc version number contains an `fadd` instruction. rust-lang#116085 (comment) https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Is.20.60tests.2Fcodegen.2Ftarget-feature-inline-closure.2Ers.60.20flakey https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Strange.20.5Cn.20in.20output.20of.20assert.20.23108341/near/395811335 This PR tries to make that not happen by adding a `CHECK-LABEL` directive that will match the line with the rustc version string, preventing the previous `CHECK-NOT` from seeing it.
2 parents 8de6f99 + 58d62fc commit 6631650

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/codegen/target-feature-inline-closure.rs

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ unsafe fn without_avx(x: __m256) -> __m256 {
3131
};
3232
add(x, x)
3333
}
34+
35+
// Don't allow the above CHECK-NOT to accidentally match a commit hash in the
36+
// compiler version.
37+
// CHECK-LABEL: rustc version

0 commit comments

Comments
 (0)