From 58d62fc271457a5d1cfdfc947c5039df6326a45e Mon Sep 17 00:00:00 2001 From: Zalathar Date: Tue, 10 Oct 2023 16:59:49 +1100 Subject: [PATCH] Don't accidentally detect the commit hash as an `fadd` instruction --- tests/codegen/target-feature-inline-closure.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/codegen/target-feature-inline-closure.rs b/tests/codegen/target-feature-inline-closure.rs index d075706173fd1..54cb27242d5a7 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