rust-lang / rust-lang/rust

compiletest: consider transitioning `//@ only-*` target-based directives to e.g. `//@ only-target_arch: arch1 arch2`

Open
#140,575 0 comments 0 reactions 1 assignee View on GitHub

@jieyouxu is already working on this.

Since May 2, 2025.

A-compiletest C-enhancement S-blocked T-bootstrap T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Which allows permitting e.g. both aarch64 + x86_64. Currently

//@ only-x86_64
//@ only-aarch64

means the test will never run, since this is AND of x86_64 + aarch64 target archs.

Also might want to consider detecting "test will never run" directive combos.

Blocked: don't pile on hacks, name-value directive parsing in compiletest desperately needs cleanup.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.