mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add ignores for powerpc and s390x to target-feature-wrong.rs and update references.
This commit is contained in:
parent
1e5145db9f
commit
0a94344fa7
@ -13,6 +13,8 @@
|
||||
// ignore-wasm
|
||||
// ignore-emscripten
|
||||
// ignore-mips
|
||||
// ignore-powerpc
|
||||
// ignore-s390x
|
||||
|
||||
#![feature(target_feature)]
|
||||
|
||||
|
@ -1,35 +1,35 @@
|
||||
warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
|
||||
--> $DIR/target-feature-wrong.rs:19:1
|
||||
--> $DIR/target-feature-wrong.rs:21:1
|
||||
|
|
||||
LL | #[target_feature = "+sse2"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: the feature named `foo` is not valid for this target
|
||||
--> $DIR/target-feature-wrong.rs:21:18
|
||||
--> $DIR/target-feature-wrong.rs:23:18
|
||||
|
|
||||
LL | #[target_feature(enable = "foo")]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
||||
--> $DIR/target-feature-wrong.rs:23:18
|
||||
--> $DIR/target-feature-wrong.rs:25:18
|
||||
|
|
||||
LL | #[target_feature(bar)]
|
||||
| ^^^
|
||||
|
||||
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
||||
--> $DIR/target-feature-wrong.rs:25:18
|
||||
--> $DIR/target-feature-wrong.rs:27:18
|
||||
|
|
||||
LL | #[target_feature(disable = "baz")]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: #[target_feature(..)] can only be applied to `unsafe` function
|
||||
--> $DIR/target-feature-wrong.rs:29:1
|
||||
--> $DIR/target-feature-wrong.rs:31:1
|
||||
|
|
||||
LL | #[target_feature(enable = "sse2")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: attribute should be applied to a function
|
||||
--> $DIR/target-feature-wrong.rs:33:1
|
||||
--> $DIR/target-feature-wrong.rs:35:1
|
||||
|
|
||||
LL | #[target_feature(enable = "sse2")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -38,7 +38,7 @@ LL | mod another {}
|
||||
| -------------- not a function
|
||||
|
||||
error: cannot use #[inline(always)] with #[target_feature]
|
||||
--> $DIR/target-feature-wrong.rs:36:1
|
||||
--> $DIR/target-feature-wrong.rs:39:1
|
||||
|
|
||||
LL | #[inline(always)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user