Matthias Krüger
026d56b0f6
Rollup merge of #139967 - jieyouxu:auxiliary, r=wesleywiser
...
Introduce and use specialized `//@ ignore-auxiliary` for test support files instead of using `//@ ignore-test`
### Summary
Add a semantically meaningful directive for ignoring test *auxiliary* files. This is for auxiliary files that *participate* in actual tests but should not be built by `compiletest` (i.e. these files are involved through `mod xxx;` or `include!()` or `#[path = "xxx"]`, etc.).
### Motivation
A specialized directive like `//@ ignore-auxiliary` makes it way easier to audit disabled tests via `//@ ignore-test`.
- These support files cannot use the canonical `auxiliary/` dir because they participate in module resolution or are included, or their relative paths can be important for test intention otherwise.
Follow-up to:
- #139705
- #139783
- #139740
See also discussions in:
- [#t-compiler > Directive name for non-test aux files?](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Directive.20name.20for.20non-test.20aux.20files.3F/with/512773817 )
- [#t-compiler > Handling disabled `//@ ignore-test` tests](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Handling.20disabled.20.60.2F.2F.40.20ignore-test.60.20tests/with/512005974 )
- [#t-compiler/meetings > [steering] 2025-04-11 Dealing with disabled tests](https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bsteering.5D.202025-04-11.20Dealing.20with.20disabled.20tests/with/511717981 )
### Remarks on remaining unconditionally disabled tests under `tests/`
After this PR, against commit 79a272c640 , only **14** remaining test files are disabled through `//@ ignore-test`:
<details>
<summary>Remaining `//@ ignore-test` files under `tests/`</summary>
```
tests/debuginfo/drop-locations.rs
4://@ ignore-test (broken, see #128971 )
tests/rustdoc/macro-document-private-duplicate.rs
1://@ ignore-test (fails spuriously, see issue #89228 )
tests/rustdoc/inline_cross/assoc-const-equality.rs
3://@ ignore-test (FIXME: #125092 )
tests/ui/match/issue-27021.rs
7://@ ignore-test (#54987 )
tests/ui/match/issue-26996.rs
7://@ ignore-test (#54987 )
tests/ui/issues/issue-49298.rs
9://@ ignore-test (#54987 )
tests/ui/issues/issue-59756.rs
2://@ ignore-test (rustfix needs multiple suggestions)
tests/ui/precondition-checks/write.rs
5://@ ignore-test (unimplemented)
tests/ui/precondition-checks/read.rs
5://@ ignore-test (unimplemented)
tests/ui/precondition-checks/write_bytes.rs
5://@ ignore-test (unimplemented)
tests/ui/explicit-tail-calls/drop-order.rs
2://@ ignore-test: tail calls are not implemented in rustc_codegen_ssa yet, so this causes 🧊
tests/ui/panics/panic-short-backtrace-windows-x86_64.rs
3://@ ignore-test (#92000 )
tests/ui/json/json-bom-plus-crlf-multifile-aux.rs
3://@ ignore-test Not a test. Used by other tests
tests/ui/traits/next-solver/object-soundness-requires-generalization.rs
2://@ ignore-test (see #114196 )
```
</details>
Of these, most are either **unimplemented**, or **spurious**, or **known-broken**. The outstanding one is `tests/ui/json/json-bom-plus-crlf-multifile-aux.rs` which I did not want to touch in *this* PR -- that aux file has load-bearing BOM and carriage returns and byte offset matters. I think those test files that require special encoding / BOM probably are better off as `run-make` tests. See #139968 for that aux file.
### Review advice
- Best reviewed commit-by-commit.
- The directive name diverged from the most voted `//@ auxiliary` because I think that's easy to confuse with `//@ aux-{crate,dir}`.
r? compiler
2025-04-17 21:53:25 +02:00
..
2024-11-27 07:18:25 -08:00
2025-04-17 19:45:28 +08:00
2025-04-07 19:43:41 +03:00
2024-03-09 22:15:50 +01:00
2024-03-09 22:15:50 +01:00
2024-03-09 22:15:50 +01:00
2024-03-09 22:15:50 +01:00
2024-03-09 22:15:50 +01:00
2024-03-09 22:15:50 +01:00
2024-07-12 03:02:57 +00:00
2024-07-12 03:02:57 +00:00
2024-09-27 15:41:04 +08:00
2024-09-27 15:41:04 +08:00
2024-09-27 15:41:04 +08:00
2024-08-04 00:11:16 +08:00
2024-08-04 00:11:16 +08:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-07-18 20:08:38 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:22:32 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-01-22 00:52:27 +00:00
2025-01-22 00:52:27 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-11-26 02:50:48 +08:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-06-21 19:00:18 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-03-29 13:30:20 +03:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-01-23 06:01:36 +00:00
2025-01-23 06:01:36 +00:00
2025-01-23 06:01:36 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-10-03 21:21:02 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-11-29 06:10:15 +11:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-07-26 15:14:05 +02:00
2024-07-26 15:14:05 +02:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-04-03 11:08:55 +03:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-11-26 02:50:48 +08:00
2023-08-01 23:30:40 +08:00
2023-11-24 19:15:52 +01:00
2023-08-01 23:30:40 +08:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2024-01-28 16:12:21 +01:00
2024-11-23 08:57:25 -07:00
2024-01-28 16:12:21 +01:00
2025-03-21 09:35:31 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-07-12 03:02:57 +00:00
2024-08-04 00:11:16 +08:00
2024-08-04 00:11:16 +08:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-07-12 03:02:57 +00:00
2023-10-12 21:50:18 +00:00
2024-04-25 13:09:13 +02:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-05-02 22:36:24 +00:00
2023-05-02 22:36:24 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2025-04-16 20:24:55 +10:00
2023-10-24 21:27:05 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-09-06 09:05:07 +05:30
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-05-01 16:15:13 +08:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2025-04-17 19:45:28 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2024-05-20 21:36:20 +02:00
2024-07-12 03:02:57 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-07-12 03:02:57 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2023-02-28 07:55:19 +00:00
2023-11-24 19:15:52 +01:00
2023-02-28 07:55:19 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-02-28 07:55:19 +00:00
2023-11-24 19:15:52 +01:00
2023-10-24 21:27:05 +00:00
2023-11-24 19:15:52 +01:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2023-02-28 07:55:19 +00:00
2024-07-18 20:08:38 +00:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-02-28 07:55:19 +00:00
2024-07-18 20:08:38 +00:00
2025-03-29 13:30:20 +03:00
2024-07-18 20:08:38 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-04-28 11:56:02 +00:00
2023-09-06 09:05:07 +05:30
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2024-05-02 19:42:31 -04:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2024-03-17 23:35:18 +00:00
2025-02-10 20:21:39 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-02-28 08:36:12 +11:00
2025-02-28 08:36:12 +11:00
2023-01-11 09:32:08 +00:00
2025-02-14 00:44:10 -08:00
2024-02-16 20:02:50 +00:00
2023-02-28 07:55:19 +00:00
2023-11-24 19:15:52 +01:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-05-02 22:36:24 +00:00
2023-02-28 07:55:19 +00:00
2024-07-18 20:08:38 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-10-24 21:27:05 +00:00
2024-02-18 11:19:24 +03:00
2024-02-18 11:19:24 +03:00
2024-02-18 11:19:24 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-11-29 18:47:32 +00:00
2023-10-24 21:27:05 +00:00
2023-11-24 19:15:52 +01:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-11-24 19:15:52 +01:00
2023-01-26 10:52:57 +08:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2024-07-12 03:02:57 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2024-03-22 20:53:42 -04:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-08-15 01:03:09 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-11-24 19:42:33 +01:00
2024-11-24 19:42:33 +01:00
2025-04-15 10:08:49 +02:00
2025-04-15 10:08:49 +02:00
2024-02-16 20:02:50 +00:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2025-03-29 13:30:20 +03:00
2024-07-18 20:08:38 +00:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2025-03-29 13:30:20 +03:00
2024-07-18 20:08:38 +00:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-02-08 08:10:43 +00:00
2025-02-14 00:44:10 -08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:22:32 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2024-06-04 14:19:42 -03:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-10-03 21:21:02 +00:00
2025-04-08 23:06:31 +03:00
2025-01-02 23:39:16 +00:00
2024-11-27 07:18:25 -08:00
2023-11-24 19:15:52 +01:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2023-10-24 21:27:05 +00:00
2023-11-24 19:15:52 +01:00
2023-05-01 16:15:13 +08:00
2023-05-01 16:15:13 +08:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-04-08 23:06:31 +03:00
2023-11-24 19:15:52 +01:00
2025-03-25 17:33:09 +03:00
2023-01-11 09:32:08 +00:00
2023-09-21 23:20:47 +08:00
2023-11-24 19:15:52 +01:00
2023-09-21 23:20:47 +08:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2025-04-08 23:06:31 +03:00
2025-04-08 23:06:31 +03:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-04-08 23:06:31 +03:00
2025-02-10 20:21:39 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2024-04-07 01:16:45 +02:00
2024-04-07 01:16:45 +02:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2024-07-12 03:22:32 +00:00
2025-03-29 13:30:20 +03:00
2024-07-18 20:08:38 +00:00
2024-05-28 11:55:20 +00:00
2025-02-10 20:21:39 +00:00
2023-03-01 13:14:30 +00:00
2024-07-18 20:08:38 +00:00
2023-12-12 15:54:25 +11:00
2023-12-12 15:54:25 +11:00
2023-10-24 21:27:05 +00:00
2025-02-10 20:21:39 +00:00
2023-10-24 21:27:05 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-07-18 20:08:38 +00:00
2024-08-03 07:57:31 -04:00
2024-08-03 07:57:31 -04:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-18 20:08:38 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:57 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-03-05 14:23:43 +01:00
2023-11-24 19:15:52 +01:00
2023-10-24 21:27:05 +00:00
2025-02-10 20:21:39 +00:00
2023-04-07 08:54:13 +12:00
2025-02-10 20:21:39 +00:00
2023-05-13 00:33:27 +08:00
2023-11-24 19:15:52 +01:00
2023-05-13 19:40:17 +08:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-10-24 21:27:05 +00:00
2023-06-11 14:36:20 +08:00
2023-06-11 14:36:20 +08:00
2023-09-06 09:05:07 +05:30
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-07-12 03:02:58 +00:00
2023-10-24 21:27:05 +00:00
2023-11-24 19:15:52 +01:00
2023-07-31 11:04:28 +08:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-04-22 17:47:35 +02:00
2025-02-10 20:21:39 +00:00
2023-12-02 23:47:39 +08:00
2024-01-13 12:46:58 -05:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2025-03-01 22:02:46 +08:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2024-07-04 19:16:47 -04:00
2024-07-12 03:02:57 +00:00
2024-07-12 03:02:57 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00