Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 src/doc/rustc-dev-guide/src/tests/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ means the test won't be compiled or run.
Some examples of `X` in `ignore-X` or `only-X`:

- A full target triple: `aarch64-apple-ios`
- Architecture: `aarch64`, `arm`, `mips`, `wasm32`, `x86_64`, `x86`,
- Architecture: `aarch64`, `arm`, `csky`, `mips`, `mips64`, `wasm32`, `x86_64`, `x86`,
...
- OS: `android`, `emscripten`, `freebsd`, `ios`, `linux`, `macos`, `windows`,
...
Expand Down
3 changes: 3 additions & 0 deletions src/tools/compiletest/src/directives/directive_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"ignore-coverage-map",
"ignore-coverage-run",
"ignore-cross-compile",
"ignore-csky",
"ignore-eabi",
"ignore-elf",
"ignore-emscripten",
Expand All @@ -91,6 +92,8 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"ignore-loongarch64",
"ignore-macabi",
"ignore-macos",
"ignore-mips",
"ignore-mips64",
"ignore-msp430",
"ignore-msvc",
"ignore-musl",
Expand Down
21 changes: 21 additions & 0 deletions tests/ui/explicit-tail-calls/become-indirect-return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
//@ ignore-backends: gcc
//@ ignore-wasm 'tail-call' feature not enabled in target wasm32-wasip1
//@ ignore-cross-compile
//
// LLVM musttail support is incomplete for these targets.
// See https://github.com/rust-lang/rust/issues/148748 for the target test matrix.
// See https://github.com/llvm/llvm-project/issues/63214 for AIX and PowerPC.
// See https://github.com/llvm/llvm-project/issues/57795 for MIPS and MIPS64.
//@ ignore-aix
//@ ignore-csky
//@ ignore-mips
//@ ignore-mips64
//@ ignore-powerpc
//@ ignore-powerpc64
//
// LLVM musttail support is lacking for sret lowering on these targets.
// Returning `[u8; 24]` uses sret lowering here.
// See https://github.com/llvm/llvm-project/issues/157814 for RISC-V.
// See https://github.com/llvm/llvm-project/issues/168152 for LoongArch.
// RISC-V fix: https://github.com/llvm/llvm-project/pull/185094, should be in LLVM 23.
// LoongArch will likely be fixed with similar changes.
//@ ignore-riscv64
//@ ignore-loongarch32
//@ ignore-loongarch64
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]

Expand Down
19 changes: 19 additions & 0 deletions tests/ui/explicit-tail-calls/indirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,26 @@
//@ ignore-backends: gcc
//
//@ ignore-wasm
//
// LLVM musttail support is incomplete for these targets.
// See https://github.com/rust-lang/rust/issues/148748 for the target test matrix.
// See https://github.com/llvm/llvm-project/issues/63214 for AIX and PowerPC.
// See https://github.com/llvm/llvm-project/issues/57795 for MIPS and MIPS64.
//@ ignore-aix
//@ ignore-csky
//@ ignore-mips
//@ ignore-mips64
//@ ignore-powerpc
//@ ignore-powerpc64
//
// LLVM musttail support is lacking for indirect arguments that do not fit in registers.
// See https://github.com/llvm/llvm-project/issues/157814 for RISC-V.
// See https://github.com/llvm/llvm-project/issues/168152 for LoongArch.
// RISC-V fix: https://github.com/llvm/llvm-project/pull/185094, should be in LLVM 23.
// LoongArch will likely be fixed with similar changes.
//@ ignore-riscv64
//@ ignore-loongarch32
//@ ignore-loongarch64
#![feature(explicit_tail_calls)]
#![expect(incomplete_features)]

Expand Down
Loading