rust/tests
Stuart Cook ea1a31b150
Rollup merge of #139469 - jieyouxu:compiletest-supports-crate-type, r=onur-ozkan
Introduce a `//@ needs-crate-type` compiletest directive

The `//@ needs-crate-type: $crate_types...` directive takes a comma-separated list of crate types that the target platform must support in order for the test to be run. This allows the test writer to semantically convey that the ignore condition is based on target crate type needs, instead of using a general purpose `//@ ignore-$target` directive (often without comment).

Fixes #132309.

### Example

```rs
//@ needs-crate-type: dylib (ignored on e.g. wasm32-unknown-unknown)
//@ compile-flags: --crate-type=dylib

fn foo() {}
```

### Review advice

- Best reviewed commit-by-commit.
- The impl is not very clean, I briefly attempted to clean up the directive handling but found that more invasive changes are needed, so I'd like to not block on the cleanup for now.

try-job: test-various
try-job: armhf-gnu
2025-04-11 13:31:47 +10:00
..
assembly Rollup merge of #138182 - durin42:llvm-21-fp128-windows, r=tgross35 2025-04-11 13:31:44 +10:00
auxiliary
codegen Rollup merge of #137447 - folkertdev:simd-extract-insert-dyn, r=scottmcm 2025-04-11 13:31:43 +10:00
codegen-units
coverage Update the minimum external LLVM to 19 2025-04-05 11:44:38 -07:00
coverage-run-rustdoc Update coverage-run-rustdoc output 2025-03-28 10:35:53 +01:00
crashes Remove crash test that do not ICE anymore 2025-04-07 16:53:12 -03:00
debuginfo
incremental compiletest: Avoid ignoring empty diagnostics in one more place 2025-04-07 19:43:41 +03:00
mir-opt Auto merge of #139088 - spastorino:ergonomic-ref-counting-2, r=nikomatsakis 2025-04-10 09:08:23 +00:00
pretty Avoid empty identifiers for delegate params and args. 2025-04-10 14:46:53 +10:00
run-make fix "still mutable" ice while metrics are enabled 2025-04-08 15:00:37 -07:00
rustdoc Correctly handle line comments in attributes and generate extern crates 2025-03-27 11:18:43 +01:00
rustdoc-gui Add regression test for #139282 2025-04-07 17:28:46 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json rustdoc-json: Add test for #[automatically_derived] attribute 2025-03-31 20:42:49 +00:00
rustdoc-ui rustdoc: Enable Markdown extensions when looking for doctests 2025-04-09 13:04:57 -04:00
ui Rollup merge of #139469 - jieyouxu:compiletest-supports-crate-type, r=onur-ozkan 2025-04-11 13:31:47 +10:00
ui-fulldeps Rollup merge of #138682 - Alexendoo:extra-symbols, r=fee1-dead 2025-04-11 13:31:44 +10:00
COMPILER_TESTS.md