Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
49cdb3d
Auto merge of #155329 - nnethercote:rm-WithCachedTypeInfo-stable_hash…
bors Apr 28, 2026
a97fe36
Add `--print=backend-has-mnemonic` and `needs-asm-mnemonic` directive
fneddy Apr 23, 2026
609fe1a
Rollup merge of #151994 - davidtwco:v0-mangling-on-stable, r=wesleywiser
JonathanBrouwer Apr 28, 2026
2d722e9
Rollup merge of #154325 - WeiTheShinobi:tweak-let-else-output, r=davi…
JonathanBrouwer Apr 28, 2026
ffcbf20
Rollup merge of #155273 - zetanumbers:create_crate_num_lock, r=jdonsz…
JonathanBrouwer Apr 28, 2026
f597ec5
Rollup merge of #155361 - Darksonn:abi-cfi, r=RalfJung
JonathanBrouwer Apr 28, 2026
a7c76a1
Rollup merge of #155692 - fneddy:fix_naked-dead-code-elimination, r=f…
JonathanBrouwer Apr 28, 2026
721c3b9
Rollup merge of #155747 - arjunr2:main, r=davidtwco
JonathanBrouwer Apr 28, 2026
e387964
Rollup merge of #155768 - Zalathar:incremental, r=jieyouxu
JonathanBrouwer Apr 28, 2026
ea13d8d
Rollup merge of #155907 - oli-obk:push-nypowoyskzxp, r=Kivooeo
JonathanBrouwer Apr 28, 2026
bef3650
Rollup merge of #155910 - BoxyUwU:borrowck_cleanup_5, r=lcnr
JonathanBrouwer Apr 28, 2026
716e4a1
Rollup merge of #155913 - mejrs:delete_the_fixme, r=nia-e
JonathanBrouwer Apr 28, 2026
ffee93e
Rollup merge of #155920 - davidtwco:triagebot-remove-review-queue, r=…
JonathanBrouwer Apr 28, 2026
310d1d8
Rollup merge of #155936 - GuillaumeGomez:small-cleanup, r=JonathanBro…
JonathanBrouwer Apr 28, 2026
854e053
Auto merge of #155941 - JonathanBrouwer:rollup-Ak66iXR, r=JonathanBro…
bors Apr 28, 2026
9a4f64b
Prepare for merging from rust-lang/rust
invalid-email-address Apr 30, 2026
8bab3be
Merge ref 'f53b654a8882' from rust-lang/rust
invalid-email-address Apr 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ca9a134e0985765ded9cfdde4030a5df4db7e2bd
f53b654a8882fd5fc036c4ca7a4ff41ce32497a6
11 changes: 11 additions & 0 deletions src/tests/compiletest.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,17 @@ See also the [codegen tests](#codegen-tests) for a similar set of tests.
If you need to work with `#![no_std]` cross-compiling tests, consult the
[`minicore` test auxiliary](./minicore.md) chapter.

#### Conditional assembly tests based on instruction support

Tests that depend on specific assembly instructions being available can use the
`//@ needs-asm-mnemonic: <MNEMONIC>` directive. This will skip the test if the
target backend does not support the specified instruction mnemonic.

For example, a test that requires the `RET` instruction:
```rust,ignore
//@ needs-asm-mnemonic: RET
```

[`tests/assembly-llvm`]: https://github.com/rust-lang/rust/tree/HEAD/tests/assembly-llvm


Expand Down
3 changes: 3 additions & 0 deletions src/tests/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ The following directives will check rustc build settings and target settings:
For tests that cross-compile to explicit targets
via `--target`, use `needs-llvm-components` instead to ensure the appropriate
backend is available.
- `needs-asm-mnemonic: <MNEMONIC>` — ignores if the target backend does not
support the specified assembly mnemonic (e.g., `RET`, `NOP`).
Only supported with the LLVM backend.
- `needs-profiler-runtime` — ignores the test if the profiler runtime was not
enabled for the target (`build.profiler = true` in `bootstrap.toml`)
- `needs-sanitizer-support` — ignores if the sanitizer support was not enabled
Expand Down
Loading