about summary refs log tree commit diff
path: root/tests/ui/statics/mutable_memory_validation.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-11 09:13:15 +0000
committerbors <bors@rust-lang.org>2024-07-11 09:13:15 +0000
commitfdf7ea6b5b1cac83c0f29e681202cf18bf25b01c (patch)
tree24e9f6e8d4767400cb3e088d5ebacbd4bf746b1f /tests/ui/statics/mutable_memory_validation.rs
parent9b0043095a2ddceb2ddad7704c084293d0c8cd09 (diff)
parentb6773591ee82df4d57157252f5122e280be3786d (diff)
downloadrust-fdf7ea6b5b1cac83c0f29e681202cf18bf25b01c.tar.gz
rust-fdf7ea6b5b1cac83c0f29e681202cf18bf25b01c.zip
Auto merge of #126777 - Zalathar:normalize-colon, r=lcnr
Require a colon in `//@ normalize-*:` test headers

The previous parser for `//@ normalize-*` headers (before #126370) was so lax that it did not require `:` after the header name. As a result, the test suite contained a mix of with-colon and without-colon normalize headers, both numbering in the hundreds.

This PR updates the without-colon headers to add a colon (matching the style used by other headers), and then updates the parser to make the colon mandatory.

(Because the normalization parser only runs *after* the header system identifies a normalize header, this will detect and issue an error for relevant headers that lack the colon.)

Addresses one of the points of #126372.
Diffstat (limited to 'tests/ui/statics/mutable_memory_validation.rs')
-rw-r--r--tests/ui/statics/mutable_memory_validation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/statics/mutable_memory_validation.rs b/tests/ui/statics/mutable_memory_validation.rs
index fcf6ad16277..470229d5fa7 100644
--- a/tests/ui/statics/mutable_memory_validation.rs
+++ b/tests/ui/statics/mutable_memory_validation.rs
@@ -1,8 +1,8 @@
 //issue: rust-lang/rust#122548
 
 // Strip out raw byte dumps to make comparison platform-independent:
-//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
-//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
+//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
+//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
 
 #![feature(const_mut_refs)]
 #![feature(const_refs_to_static)]