Added apxf target feature test

This commit is contained in:
Madhav Madhusoodanan 2025-04-21 17:23:18 +05:30
parent 43357b4a64
commit c32dc2dbda
3 changed files with 20 additions and 0 deletions

View File

@ -27,6 +27,7 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
`amx-tf32` `amx-tf32`
`amx-tile` `amx-tile`
`amx-transpose` `amx-transpose`
`apxf`
`atomics` `atomics`
`avx` `avx`
`avx10.1` `avx10.1`

View File

@ -0,0 +1,6 @@
//@ only-x86_64
#[target_feature(enable = "apxf")]
//~^ ERROR: currently unstable
unsafe fn foo() {}
fn main() {}

View File

@ -0,0 +1,13 @@
error[E0658]: the target feature `apxf` is currently unstable
--> $DIR/feature-gate-apx-target-feature.rs:2:18
|
LL | #[target_feature(enable = "apxf")]
| ^^^^^^^^^^^^^^^
|
= note: see issue #139284 <https://github.com/rust-lang/rust/issues/139284> for more information
= help: add `#![feature(apx_target_feature)]` 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 1 previous error
For more information about this error, try `rustc --explain E0658`.