about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-20 15:34:07 +0200
committerGitHub <noreply@github.com>2025-07-20 15:34:07 +0200
commit2abca9c43f1d4dcbc70760800cdb372fc5ce0f11 (patch)
tree62c20436a92fe4987bd720d28e278d123ea156d6 /src/doc/rustc-dev-guide
parentcb6542e7e344dacada3f76070bb6754c562ab438 (diff)
parent4a35a9f074f5df8ce0d1f14d8569da3b6badfc01 (diff)
downloadrust-2abca9c43f1d4dcbc70760800cdb372fc5ce0f11.tar.gz
rust-2abca9c43f1d4dcbc70760800cdb372fc5ce0f11.zip
Rollup merge of #144125 - GuillaumeGomez:new-annotations, r=Kobzol
Add new `ignore-backends` and `needs-backends` tests annotations

Part of https://github.com/rust-lang/compiler-team/issues/891.

Next step will be to add these annotations in the files where either the output is different based on the codegen (like `asm` tests) or that are known to fail in the GCC backend.

cc `@oli-obk` `@antoyo`
r? `@Kobzol`
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/tests/directives.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/directives.md b/src/doc/rustc-dev-guide/src/tests/directives.md
index 6685add461e..5c3ae359ba0 100644
--- a/src/doc/rustc-dev-guide/src/tests/directives.md
+++ b/src/doc/rustc-dev-guide/src/tests/directives.md
@@ -205,6 +205,8 @@ settings:
   on `wasm32-unknown-unknown` target because the target does not support the
   `proc-macro` crate type.
 - `needs-target-std` — ignores if target platform does not have std support.
+- `ignore-backends` — ignores the listed backends, separated by whitespace characters.
+- `needs-backends` — only runs the test if current codegen backend is listed.
 
 The following directives will check LLVM support: