forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#127209 - sayantn:xop, r=Amanieu Added the `xop` target-feature and the `xop_target_feature` feature gate This is an effort towards rust-lang#127208. This adds the `xop` target feature gated by `xop_target_feature`.
- Loading branch information
Showing
8 changed files
with
26 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 |
---|---|---|
|
@@ -2076,6 +2076,7 @@ symbols! { | |
x87_reg, | ||
xer, | ||
xmm_reg, | ||
xop_target_feature, | ||
yeet_desugar_details, | ||
yeet_expr, | ||
yes, | ||
|
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 = "xop")] | ||
//~^ ERROR: currently unstable | ||
unsafe fn foo() {} | ||
|
||
fn main() {} |
13 changes: 13 additions & 0 deletions
13
tests/ui/feature-gates/feature-gate-xop_target_feature.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 `xop` is currently unstable | ||
--> $DIR/feature-gate-xop_target_feature.rs:2:18 | ||
| | ||
LL | #[target_feature(enable = "xop")] | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #127208 <https://github.com/rust-lang/rust/issues/127208> for more information | ||
= help: add `#![feature(xop_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`. |