1
1
error: #[target_feature] attribute must be of the form #[target_feature(..)]
2
- --> $DIR/target-feature-wrong.rs:25 :1
2
+ --> $DIR/target-feature-wrong.rs:26 :1
3
3
|
4
4
LL | #[target_feature = "+sse2"]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
7
7
error: the feature named `foo` is not valid for this target
8
- --> $DIR/target-feature-wrong.rs:27 :18
8
+ --> $DIR/target-feature-wrong.rs:28 :18
9
9
|
10
10
LL | #[target_feature(enable = "foo")]
11
11
| ^^^^^^^^^^^^^^
12
12
13
13
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
14
- --> $DIR/target-feature-wrong.rs:29 :18
14
+ --> $DIR/target-feature-wrong.rs:30 :18
15
15
|
16
16
LL | #[target_feature(bar)]
17
17
| ^^^
18
18
19
19
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
20
- --> $DIR/target-feature-wrong.rs:31 :18
20
+ --> $DIR/target-feature-wrong.rs:32 :18
21
21
|
22
22
LL | #[target_feature(disable = "baz")]
23
23
| ^^^^^^^^^^^^^^^
24
24
25
25
error: #[target_feature(..)] can only be applied to `unsafe` function
26
- --> $DIR/target-feature-wrong.rs:35 :1
26
+ --> $DIR/target-feature-wrong.rs:36 :1
27
27
|
28
28
LL | #[target_feature(enable = "sse2")]
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
31
error: attribute should be applied to a function
32
- --> $DIR/target-feature-wrong.rs:39 :1
32
+ --> $DIR/target-feature-wrong.rs:40 :1
33
33
|
34
34
LL | #[target_feature(enable = "sse2")]
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -38,7 +38,7 @@ LL | mod another {}
38
38
| -------------- not a function
39
39
40
40
error: cannot use #[inline(always)] with #[target_feature]
41
- --> $DIR/target-feature-wrong.rs:43 :1
41
+ --> $DIR/target-feature-wrong.rs:44 :1
42
42
|
43
43
LL | #[inline(always)]
44
44
| ^^^^^^^^^^^^^^^^^
0 commit comments