about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-10-10 16:59:49 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-10-10 16:59:49 +1100
commit58d62fc271457a5d1cfdfc947c5039df6326a45e (patch)
treee692d971b6d87a7b4994d0c509d60572b064e1dc
parentfa6d1e75125d9c94c21a58c2301492026031fcb8 (diff)
downloadrust-58d62fc271457a5d1cfdfc947c5039df6326a45e.tar.gz
rust-58d62fc271457a5d1cfdfc947c5039df6326a45e.zip
Don't accidentally detect the commit hash as an `fadd` instruction
-rw-r--r--tests/codegen/target-feature-inline-closure.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/codegen/target-feature-inline-closure.rs b/tests/codegen/target-feature-inline-closure.rs
index d075706173f..54cb27242d5 100644
--- a/tests/codegen/target-feature-inline-closure.rs
+++ b/tests/codegen/target-feature-inline-closure.rs
@@ -31,3 +31,7 @@ unsafe fn without_avx(x: __m256) -> __m256 {
     };
     add(x, x)
 }
+
+// Don't allow the above CHECK-NOT to accidentally match a commit hash in the
+// compiler version.
+// CHECK-LABEL: rustc version