forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the feature gate and target-features
- Loading branch information
1 parent
5e311f9
commit ec05c4e
Showing
8 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2072,6 +2072,7 @@ symbols! { | |
write_str, | ||
write_via_move, | ||
writeln_macro, | ||
x86_amx_intrinsics, | ||
x87_reg, | ||
xer, | ||
xmm_reg, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//@ only-x86_64 | ||
#[target_feature(enable = "amx-tile")] | ||
//~^ ERROR: currently unstable | ||
unsafe fn foo() {} | ||
|
||
fn main() {} |
13 changes: 13 additions & 0 deletions
13
tests/ui/feature-gates/feature-gate-x86_amx_intrinsics.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
error[E0658]: the target feature `amx-tile` is currently unstable | ||
--> $DIR/feature-gate-x86_amx_intrinsics.rs:2:18 | ||
| | ||
LL | #[target_feature(enable = "amx-tile")] | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #126622 <https://github.com/rust-lang/rust/issues/126622> for more information | ||
= help: add `#![feature(x86_amx_intrinsics)]` 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`. |