Skip to content

Commit 0a94344

Browse files
author
dragan.mladjenovic
committed
Add ignores for powerpc and s390x to target-feature-wrong.rs and update references.
1 parent 1e5145d commit 0a94344

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/test/ui/target-feature-wrong.rs

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// ignore-wasm
1414
// ignore-emscripten
1515
// ignore-mips
16+
// ignore-powerpc
17+
// ignore-s390x
1618

1719
#![feature(target_feature)]
1820

src/test/ui/target-feature-wrong.stderr

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
2-
--> $DIR/target-feature-wrong.rs:19:1
2+
--> $DIR/target-feature-wrong.rs:21:1
33
|
44
LL | #[target_feature = "+sse2"]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error: the feature named `foo` is not valid for this target
8-
--> $DIR/target-feature-wrong.rs:21:18
8+
--> $DIR/target-feature-wrong.rs:23:18
99
|
1010
LL | #[target_feature(enable = "foo")]
1111
| ^^^^^^^^^^^^^^
1212

1313
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
14-
--> $DIR/target-feature-wrong.rs:23:18
14+
--> $DIR/target-feature-wrong.rs:25:18
1515
|
1616
LL | #[target_feature(bar)]
1717
| ^^^
1818

1919
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
20-
--> $DIR/target-feature-wrong.rs:25:18
20+
--> $DIR/target-feature-wrong.rs:27:18
2121
|
2222
LL | #[target_feature(disable = "baz")]
2323
| ^^^^^^^^^^^^^^^
2424

2525
error: #[target_feature(..)] can only be applied to `unsafe` function
26-
--> $DIR/target-feature-wrong.rs:29:1
26+
--> $DIR/target-feature-wrong.rs:31:1
2727
|
2828
LL | #[target_feature(enable = "sse2")]
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
error: attribute should be applied to a function
32-
--> $DIR/target-feature-wrong.rs:33:1
32+
--> $DIR/target-feature-wrong.rs:35:1
3333
|
3434
LL | #[target_feature(enable = "sse2")]
3535
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -38,7 +38,7 @@ LL | mod another {}
3838
| -------------- not a function
3939

4040
error: cannot use #[inline(always)] with #[target_feature]
41-
--> $DIR/target-feature-wrong.rs:36:1
41+
--> $DIR/target-feature-wrong.rs:39:1
4242
|
4343
LL | #[inline(always)]
4444
| ^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)