diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-12-27 20:44:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-27 20:44:12 +0800 |
| commit | bc3e8917e3723928180c4a11faa19ccb29043bf5 (patch) | |
| tree | 9170b4567a83bec122df8512712f7b02b25a2667 /tests/ui/macros | |
| parent | 7bbbfc650dd9ab474a1d79dcf127e91022e0422e (diff) | |
| parent | 835fbcbcab82ce728a7233de6c32a2d206e3336c (diff) | |
| download | rust-bc3e8917e3723928180c4a11faa19ccb29043bf5.tar.gz rust-bc3e8917e3723928180c4a11faa19ccb29043bf5.zip | |
Rollup merge of #134759 - Zalathar:normalize, r=jieyouxu
compiletest: Remove the `-test` suffix from normalize directives This suffix was an artifact of using the same condition-checking engine as the `ignore-*` and `only-*` directives, but in practice we have only 2 tests that legitimately use a condition, and both of them only care about 32-bit vs 64-bit. This PR detaches `normalize-*` directives from the condition checker, and replaces it with a much simpler system of four explicit `NormalizeKind` values. It then takes advantage of that simplicity to get rid of the `-test` suffix. --- Addresses one of the points of #126372. The new name-checking code is a bit quaint, but I think it's a definite improvement over the status quo. --- The corresponding dev-guide update is https://github.com/rust-lang/rustc-dev-guide/pull/2172. r? jieyouxu
Diffstat (limited to 'tests/ui/macros')
| -rw-r--r-- | tests/ui/macros/macros-nonfatal-errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/macros/macros-nonfatal-errors.rs b/tests/ui/macros/macros-nonfatal-errors.rs index 658455b1b5b..79beffbe986 100644 --- a/tests/ui/macros/macros-nonfatal-errors.rs +++ b/tests/ui/macros/macros-nonfatal-errors.rs @@ -1,4 +1,4 @@ -//@ normalize-stderr-test: "`: .*" -> "`: $$FILE_NOT_FOUND_MSG" +//@ normalize-stderr: "`: .*" -> "`: $$FILE_NOT_FOUND_MSG" // test that errors in a (selection) of macros don't kill compilation // immediately, so that we get more errors listed at a time. |
