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
|
||
---|---|---|
.. | ||
apfloat-modulo-wrong.rs | ||
arith-unsigned.rs | ||
div-mod.rs | ||
divide-by-zero.rs | ||
f16-f128-lit.rs | ||
float2.rs | ||
float_math.rs | ||
float-int-invalid-const-cast.rs | ||
float-literal-inference.rs | ||
float-nan.rs | ||
float-signature.rs | ||
float.rs | ||
floatlits.rs | ||
i8-incr.rs | ||
i32-sub.rs | ||
i128.rs | ||
int-abs-overflow.rs | ||
integer-literal-radix.rs | ||
integer-literal-suffix-inference-2.rs | ||
integer-literal-suffix-inference-3.rs | ||
integer-literal-suffix-inference.rs | ||
isize-base.rs | ||
issue-8460.rs | ||
location-add-assign-overflow.rs | ||
location-add-overflow.rs | ||
location-divide-assign-by-zero.rs | ||
location-divide-by-zero.rs | ||
location-mod-assign-by-zero.rs | ||
location-mod-by-zero.rs | ||
location-mul-assign-overflow.rs | ||
location-mul-overflow.rs | ||
location-sub-assign-overflow.rs | ||
location-sub-overflow.rs | ||
mod-zero.rs | ||
next-power-of-two-overflow-debug.rs | ||
next-power-of-two-overflow-ndebug.rs | ||
not-suggest-float-literal.rs | ||
not-suggest-float-literal.stderr | ||
num-wrapping.rs | ||
numeric-method-autoexport.rs | ||
overflow-attribute-works-1.rs | ||
overflow-attribute-works-2.rs | ||
overflowing-add.rs | ||
overflowing-lsh-4.rs | ||
overflowing-lsh-4.stderr | ||
overflowing-mul.rs | ||
overflowing-neg-nonzero.rs | ||
overflowing-pow-signed.rs | ||
overflowing-pow-unsigned.rs | ||
overflowing-rsh-4.rs | ||
overflowing-rsh-4.stderr | ||
overflowing-sub.rs | ||
promoted_overflow.rs | ||
saturating-float-casts-impl.rs | ||
saturating-float-casts-wasm.rs | ||
saturating-float-casts.rs | ||
shift-near-oflo.rs | ||
shift-various-types.rs | ||
shift.rs | ||
signed-shift-const-eval.rs | ||
suggest-float-literal.fixed | ||
suggest-float-literal.rs | ||
suggest-float-literal.stderr | ||
u8-incr-decr.rs | ||
u8-incr.rs | ||
u32-decr.rs | ||
u128-as-f32.rs | ||
u128.rs | ||
unary-minus-suffix-inference.rs | ||
usize-base.rs |