mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 15:37:39 +00:00
![]() 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
|
||
---|---|---|
.. | ||
bad-format-args.rs | ||
bad-format-args.stderr | ||
coherence-overlapping-inherent-impl-trait.rs | ||
coherence-overlapping-inherent-impl-trait.stderr | ||
empty_span.rs | ||
empty_span.stderr | ||
huge_multispan_highlight.ascii.svg | ||
huge_multispan_highlight.rs | ||
huge_multispan_highlight.unicode.svg | ||
issue-11715.rs | ||
issue-11715.stderr | ||
issue-28308.rs | ||
issue-28308.stderr | ||
one_line.rs | ||
one_line.stderr | ||
overlapping_inherent_impls.rs | ||
overlapping_inherent_impls.stderr | ||
tab_2.rs | ||
tab_2.stderr | ||
tab_3.rs | ||
tab_3.stderr | ||
tab.rs | ||
tab.stderr | ||
two_files_data.rs | ||
two_files.rs | ||
two_files.stderr | ||
unicode_2.rs | ||
unicode_2.stderr | ||
unicode_3.rs | ||
unicode_3.stderr | ||
unicode.expanded.stdout | ||
unicode.normal.stderr | ||
unicode.rs |