diff options
| author | bors <bors@rust-lang.org> | 2024-07-11 09:13:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-11 09:13:15 +0000 |
| commit | fdf7ea6b5b1cac83c0f29e681202cf18bf25b01c (patch) | |
| tree | 24e9f6e8d4767400cb3e088d5ebacbd4bf746b1f /tests/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs | |
| parent | 9b0043095a2ddceb2ddad7704c084293d0c8cd09 (diff) | |
| parent | b6773591ee82df4d57157252f5122e280be3786d (diff) | |
| download | rust-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/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs')
| -rw-r--r-- | tests/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs b/tests/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs index 2b220370d77..57c0c1af031 100644 --- a/tests/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs +++ b/tests/rustdoc-ui/remap-path-prefix-failed-doctest-output.rs @@ -4,8 +4,8 @@ //@ failure-status: 101 //@ compile-flags:--test -Z unstable-options --remap-path-prefix={{src-base}}=remapped_path --test-args --test-threads=1 //@ rustc-env:RUST_BACKTRACE=0 -//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" -//@ normalize-stdout-test "exit (status|code): 101" -> "exit status: 101" +//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME" +//@ normalize-stdout-test: "exit (status|code): 101" -> "exit status: 101" // doctest fails at runtime /// ``` |
