Skip to content

Commit 3103efb

Browse files
Rollup merge of #144125 - GuillaumeGomez:new-annotations, r=Kobzol
Add new `ignore-backends` and `needs-backends` tests annotations Part of rust-lang/compiler-team#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`
2 parents 8035560 + 22fa0c8 commit 3103efb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tests/directives.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ settings:
205205
on `wasm32-unknown-unknown` target because the target does not support the
206206
`proc-macro` crate type.
207207
- `needs-target-std` — ignores if target platform does not have std support.
208+
- `ignore-backends` — ignores the listed backends, separated by whitespace characters.
209+
- `needs-backends` — only runs the test if current codegen backend is listed.
208210

209211
The following directives will check LLVM support:
210212

0 commit comments

Comments
 (0)