Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8bbc080
Added `Clone` implementation for `ChunkBy`
nwoods-cimpress Mar 4, 2025
e48617f
Changing #[stable] tag
nwoods-cimpress Mar 6, 2025
604c8a7
Report the `unpredictable_function_pointer_comparisons` lint in macro
Urgau Dec 19, 2024
64d61fb
Allow `unpredictable_function_pointer_comparisons` lint in more places
Urgau Dec 19, 2024
6a5bad3
resolve: Tweak `private_macro_use` lint to be compatible with upcomin…
petrochenkov Jun 2, 2025
c0851d7
Update ABI compatibility docs about null-pointer-optimized enums.
zachs18 Jun 3, 2025
2cfd494
docs: autogenerate compiler flag stubs based on -Zhelp
rmehri01 Jun 7, 2025
ff8b11e
assert in release in ast_lowering::item
workingjubilee Jun 9, 2025
dd78c95
assert more often in release in ast_lowering
workingjubilee Jun 9, 2025
6cea550
tests: Minicore `extern "gpu-kernel"` feature test
workingjubilee Jun 1, 2025
5906998
tests: Copy dont-shuffle-bswaps per tested opt level
workingjubilee Jun 7, 2025
6b0deb2
tests: Revise dont-shuffle-bswaps-opt3 per tested arch
workingjubilee Jun 7, 2025
de8a91b
Add supported asm types for LoongArch32
heiher Jun 9, 2025
2095211
core docs: improve clarity of considerations about atomic CAS operations
fu5ha Jun 10, 2025
d8f053b
Fix a missing fragment specifier in rustdoc tests
tgross35 Jul 31, 2024
1dc388b
Make `missing_fragment_specifier` an unconditional error
tgross35 Jul 31, 2024
2a10f12
miri: add flag to suppress float non-determinism
RalfJung Jun 11, 2025
86493f7
compiler: Avoid reporting unsupported_calling_conventions in deps
workingjubilee Jun 11, 2025
457a4c4
Update dependencies in `library/Cargo.lock`
tgross35 Jun 10, 2025
8f0c09a
tests: Bless for weaker unsupported_calling_conventions
workingjubilee Jun 11, 2025
22de67f
add `extern "custom"` functions
folkertdev May 7, 2025
b1bb263
Rollup merge of #128425 - tgross35:missing-fragment-specifier-uncondi…
workingjubilee Jun 12, 2025
5f6a730
Rollup merge of #134536 - Urgau:fn-ptr-option, r=compiler-errors,trav…
workingjubilee Jun 12, 2025
0fb1b14
Rollup merge of #138016 - nwoods-cimpress:slice_chunkby_clone, r=dtolnay
workingjubilee Jun 12, 2025
d96c7e3
Rollup merge of #140770 - folkertdev:custom-abi, r=tgross35
workingjubilee Jun 12, 2025
6293e66
Rollup merge of #141934 - petrochenkov:privmacuse, r=compiler-errors
workingjubilee Jun 12, 2025
f15ab28
Rollup merge of #141947 - zachs18:patch-4, r=workingjubilee,traviscross
workingjubilee Jun 12, 2025
990a64e
Rollup merge of #142135 - rmehri01:gen-compiler-flags, r=compiler-errors
workingjubilee Jun 12, 2025
567f3c1
Rollup merge of #142176 - workingjubilee:dont-shuffle-bswaps-per-arch…
workingjubilee Jun 12, 2025
1be2954
Rollup merge of #142248 - heiher:loong32-asm-types, r=Amanieu
workingjubilee Jun 12, 2025
1bcd23a
Rollup merge of #142252 - fu5ha:doc-cas-ops, r=ibraheemdev
workingjubilee Jun 12, 2025
a3647ab
Rollup merge of #142267 - workingjubilee:debug-assert-less-in-ast-low…
workingjubilee Jun 12, 2025
98305b9
Rollup merge of #142273 - workingjubilee:rework-gpu-kernel-feature-ga…
workingjubilee Jun 12, 2025
04497e6
Rollup merge of #142276 - tgross35:update-library-lockfile, r=Mark-Si…
workingjubilee Jun 12, 2025
acc6cab
Rollup merge of #142337 - RalfJung:miri-float-nondet, r=oli-obk
workingjubilee Jun 12, 2025
0099a1f
Rollup merge of #142353 - workingjubilee:warn-less-about-cdecl-and-ot…
workingjubilee Jun 12, 2025
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
73 changes: 73 additions & 0 deletions tests/ui/feature-gates/feature-gate-abi_gpu_kernel.AMDGPU.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:16:8
|
LL | extern "gpu-kernel" fn f1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:21:12
|
LL | extern "gpu-kernel" fn m1(_: ());
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:23:12
|
LL | extern "gpu-kernel" fn dm1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:31:12
|
LL | extern "gpu-kernel" fn m1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:12
|
LL | extern "gpu-kernel" fn im1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:18
|
LL | type A1 = extern "gpu-kernel" fn(_: ());
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:47:8
|
LL | extern "gpu-kernel" {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0658`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:11:8
--> $DIR/feature-gate-abi_gpu_kernel.rs:16:8
|
LL | extern "gpu-kernel" fn f1(_: ()) {}
| ^^^^^^^^^^^^
Expand All @@ -9,7 +9,7 @@ LL | extern "gpu-kernel" fn f1(_: ()) {}
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:16:12
--> $DIR/feature-gate-abi_gpu_kernel.rs:21:12
|
LL | extern "gpu-kernel" fn m1(_: ());
| ^^^^^^^^^^^^
Expand All @@ -19,7 +19,7 @@ LL | extern "gpu-kernel" fn m1(_: ());
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:18:12
--> $DIR/feature-gate-abi_gpu_kernel.rs:23:12
|
LL | extern "gpu-kernel" fn dm1(_: ()) {}
| ^^^^^^^^^^^^
Expand All @@ -29,7 +29,7 @@ LL | extern "gpu-kernel" fn dm1(_: ()) {}
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:26:12
--> $DIR/feature-gate-abi_gpu_kernel.rs:31:12
|
LL | extern "gpu-kernel" fn m1(_: ()) {}
| ^^^^^^^^^^^^
Expand All @@ -39,7 +39,7 @@ LL | extern "gpu-kernel" fn m1(_: ()) {}
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:32:12
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:12
|
LL | extern "gpu-kernel" fn im1(_: ()) {}
| ^^^^^^^^^^^^
Expand All @@ -49,7 +49,7 @@ LL | extern "gpu-kernel" fn im1(_: ()) {}
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:18
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:18
|
LL | type A1 = extern "gpu-kernel" fn(_: ());
| ^^^^^^^^^^^^
Expand All @@ -59,7 +59,7 @@ LL | type A1 = extern "gpu-kernel" fn(_: ());
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:8
--> $DIR/feature-gate-abi_gpu_kernel.rs:47:8
|
LL | extern "gpu-kernel" {}
| ^^^^^^^^^^^^
Expand All @@ -69,7 +69,7 @@ LL | extern "gpu-kernel" {}
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

warning: the calling convention "gpu-kernel" is not supported on this target
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:11
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:11
|
LL | type A1 = extern "gpu-kernel" fn(_: ());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -79,31 +79,31 @@ LL | type A1 = extern "gpu-kernel" fn(_: ());
= note: `#[warn(unsupported_fn_ptr_calling_conventions)]` on by default

error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:1
--> $DIR/feature-gate-abi_gpu_kernel.rs:47:1
|
LL | extern "gpu-kernel" {}
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
--> $DIR/feature-gate-abi_gpu_kernel.rs:11:1
--> $DIR/feature-gate-abi_gpu_kernel.rs:16:1
|
LL | extern "gpu-kernel" fn f1(_: ()) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
--> $DIR/feature-gate-abi_gpu_kernel.rs:18:5
--> $DIR/feature-gate-abi_gpu_kernel.rs:23:5
|
LL | extern "gpu-kernel" fn dm1(_: ()) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
--> $DIR/feature-gate-abi_gpu_kernel.rs:26:5
--> $DIR/feature-gate-abi_gpu_kernel.rs:31:5
|
LL | extern "gpu-kernel" fn m1(_: ()) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
--> $DIR/feature-gate-abi_gpu_kernel.rs:32:5
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:5
|
LL | extern "gpu-kernel" fn im1(_: ()) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -114,7 +114,7 @@ Some errors have detailed explanations: E0570, E0658.
For more information about an error, try `rustc --explain E0570`.
Future incompatibility report: Future breakage diagnostic:
warning: the calling convention "gpu-kernel" is not supported on this target
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:11
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:11
|
LL | type A1 = extern "gpu-kernel" fn(_: ());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
73 changes: 73 additions & 0 deletions tests/ui/feature-gates/feature-gate-abi_gpu_kernel.NVPTX.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:16:8
|
LL | extern "gpu-kernel" fn f1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:21:12
|
LL | extern "gpu-kernel" fn m1(_: ());
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:23:12
|
LL | extern "gpu-kernel" fn dm1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:31:12
|
LL | extern "gpu-kernel" fn m1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:37:12
|
LL | extern "gpu-kernel" fn im1(_: ()) {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:42:18
|
LL | type A1 = extern "gpu-kernel" fn(_: ());
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: the extern "gpu-kernel" ABI is experimental and subject to change
--> $DIR/feature-gate-abi_gpu_kernel.rs:47:8
|
LL | extern "gpu-kernel" {}
| ^^^^^^^^^^^^
|
= note: see issue #135467 <https://github.com/rust-lang/rust/issues/135467> for more information
= help: add `#![feature(abi_gpu_kernel)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0658`.
19 changes: 12 additions & 7 deletions tests/ui/feature-gates/feature-gate-abi_gpu_kernel.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//@ revisions: HOST AMDGPU NVPTX
//@ add-core-stubs
//@ compile-flags: --crate-type=rlib
//@[AMDGPU] compile-flags: --target amdgcn-amd-amdhsa -Ctarget-cpu=gfx1100
//@[AMDGPU] needs-llvm-components: amdgpu
//@[NVPTX] compile-flags: --target nvptx64-nvidia-cuda
//@[NVPTX] needs-llvm-components: nvptx

#![feature(no_core, lang_items)]
#![no_core]
Expand All @@ -9,35 +14,35 @@ use minicore::*;

// Functions
extern "gpu-kernel" fn f1(_: ()) {} //~ ERROR "gpu-kernel" ABI is experimental and subject to change
//~^ ERROR is not a supported ABI
//[HOST]~^ ERROR is not a supported ABI

// Methods in trait definition
trait Tr {
extern "gpu-kernel" fn m1(_: ()); //~ ERROR "gpu-kernel" ABI is experimental and subject to change

extern "gpu-kernel" fn dm1(_: ()) {} //~ ERROR "gpu-kernel" ABI is experimental and subject to change
//~^ ERROR is not a supported ABI
//[HOST]~^ ERROR is not a supported ABI
}

struct S;

// Methods in trait impl
impl Tr for S {
extern "gpu-kernel" fn m1(_: ()) {} //~ ERROR "gpu-kernel" ABI is experimental and subject to change
//~^ ERROR is not a supported ABI
//[HOST]~^ ERROR is not a supported ABI
}

// Methods in inherent impl
impl S {
extern "gpu-kernel" fn im1(_: ()) {} //~ ERROR "gpu-kernel" ABI is experimental and subject to change
//~^ ERROR is not a supported ABI
//[HOST]~^ ERROR is not a supported ABI
}

// Function pointer types
type A1 = extern "gpu-kernel" fn(_: ()); //~ ERROR "gpu-kernel" ABI is experimental and subject to change
//~^ WARN the calling convention "gpu-kernel" is not supported on this target
//~^^ WARN this was previously accepted by the compiler but is being phased out
//[HOST]~^ WARNING the calling convention "gpu-kernel" is not supported on this target [unsupported_fn_ptr_calling_conventions]
//[HOST]~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

// Foreign modules
extern "gpu-kernel" {} //~ ERROR "gpu-kernel" ABI is experimental and subject to change
//~^ ERROR is not a supported ABI
//[HOST]~^ ERROR is not a supported ABI