1
1
error: malformed `target_feature` attribute input
2
- --> $DIR/invalid-attribute.rs:32 :1
2
+ --> $DIR/invalid-attribute.rs:31 :1
3
3
|
4
4
LL | #[target_feature = "+sse2"]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[target_feature(enable = "name")]`
6
6
7
7
error: attribute should be applied to a function definition
8
- --> $DIR/invalid-attribute.rs:17 :1
8
+ --> $DIR/invalid-attribute.rs:16 :1
9
9
|
10
10
LL | #[target_feature(enable = "sse2")]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -14,7 +14,7 @@ LL | extern crate alloc;
14
14
| ------------------- not a function definition
15
15
16
16
error: attribute should be applied to a function definition
17
- --> $DIR/invalid-attribute.rs:22 :1
17
+ --> $DIR/invalid-attribute.rs:21 :1
18
18
|
19
19
LL | #[target_feature(enable = "sse2")]
20
20
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | use alloc::alloc::alloc;
23
23
| ------------------------ not a function definition
24
24
25
25
error: attribute should be applied to a function definition
26
- --> $DIR/invalid-attribute.rs:27 :1
26
+ --> $DIR/invalid-attribute.rs:26 :1
27
27
|
28
28
LL | #[target_feature(enable = "sse2")]
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -32,7 +32,7 @@ LL | extern "Rust" {}
32
32
| ---------------- not a function definition
33
33
34
34
error: attribute should be applied to a function definition
35
- --> $DIR/invalid-attribute.rs:49 :1
35
+ --> $DIR/invalid-attribute.rs:48 :1
36
36
|
37
37
LL | #[target_feature(enable = "sse2")]
38
38
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -41,7 +41,7 @@ LL | mod another {}
41
41
| -------------- not a function definition
42
42
43
43
error: attribute should be applied to a function definition
44
- --> $DIR/invalid-attribute.rs:54 :1
44
+ --> $DIR/invalid-attribute.rs:53 :1
45
45
|
46
46
LL | #[target_feature(enable = "sse2")]
47
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +50,7 @@ LL | const FOO: usize = 7;
50
50
| --------------------- not a function definition
51
51
52
52
error: attribute should be applied to a function definition
53
- --> $DIR/invalid-attribute.rs:59 :1
53
+ --> $DIR/invalid-attribute.rs:58 :1
54
54
|
55
55
LL | #[target_feature(enable = "sse2")]
56
56
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -59,7 +59,7 @@ LL | struct Foo;
59
59
| ----------- not a function definition
60
60
61
61
error: attribute should be applied to a function definition
62
- --> $DIR/invalid-attribute.rs:64 :1
62
+ --> $DIR/invalid-attribute.rs:63 :1
63
63
|
64
64
LL | #[target_feature(enable = "sse2")]
65
65
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -68,7 +68,7 @@ LL | enum Bar {}
68
68
| ----------- not a function definition
69
69
70
70
error: attribute should be applied to a function definition
71
- --> $DIR/invalid-attribute.rs:69 :1
71
+ --> $DIR/invalid-attribute.rs:68 :1
72
72
|
73
73
LL | #[target_feature(enable = "sse2")]
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -81,7 +81,7 @@ LL | | }
81
81
| |_- not a function definition
82
82
83
83
error: attribute should be applied to a function definition
84
- --> $DIR/invalid-attribute.rs:77 :1
84
+ --> $DIR/invalid-attribute.rs:76 :1
85
85
|
86
86
LL | #[target_feature(enable = "sse2")]
87
87
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | type Uwu = ();
90
90
| -------------- not a function definition
91
91
92
92
error: attribute should be applied to a function definition
93
- --> $DIR/invalid-attribute.rs:82 :1
93
+ --> $DIR/invalid-attribute.rs:81 :1
94
94
|
95
95
LL | #[target_feature(enable = "sse2")]
96
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -99,7 +99,7 @@ LL | trait Baz {}
99
99
| ------------ not a function definition
100
100
101
101
error: attribute should be applied to a function definition
102
- --> $DIR/invalid-attribute.rs:92 :1
102
+ --> $DIR/invalid-attribute.rs:91 :1
103
103
|
104
104
LL | #[target_feature(enable = "sse2")]
105
105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -108,7 +108,7 @@ LL | static A: () = ();
108
108
| ------------------ not a function definition
109
109
110
110
error: attribute should be applied to a function definition
111
- --> $DIR/invalid-attribute.rs:97 :1
111
+ --> $DIR/invalid-attribute.rs:96 :1
112
112
|
113
113
LL | #[target_feature(enable = "sse2")]
114
114
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -117,7 +117,7 @@ LL | impl Quux for u8 {}
117
117
| ------------------- not a function definition
118
118
119
119
error: attribute should be applied to a function definition
120
- --> $DIR/invalid-attribute.rs:102 :1
120
+ --> $DIR/invalid-attribute.rs:101 :1
121
121
|
122
122
LL | #[target_feature(enable = "sse2")]
123
123
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -126,7 +126,7 @@ LL | impl Foo {}
126
126
| ----------- not a function definition
127
127
128
128
error: attribute should be applied to a function definition
129
- --> $DIR/invalid-attribute.rs:120 :5
129
+ --> $DIR/invalid-attribute.rs:119 :5
130
130
|
131
131
LL | #[target_feature(enable = "sse2")]
132
132
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -138,7 +138,7 @@ LL | | }
138
138
| |_____- not a function definition
139
139
140
140
error: attribute should be applied to a function definition
141
- --> $DIR/invalid-attribute.rs:128 :5
141
+ --> $DIR/invalid-attribute.rs:127 :5
142
142
|
143
143
LL | #[target_feature(enable = "sse2")]
144
144
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -147,25 +147,25 @@ LL | || {};
147
147
| ----- not a function definition
148
148
149
149
error: the feature named `foo` is not valid for this target
150
- --> $DIR/invalid-attribute.rs:34 :18
150
+ --> $DIR/invalid-attribute.rs:33 :18
151
151
|
152
152
LL | #[target_feature(enable = "foo")]
153
153
| ^^^^^^^^^^^^^^ `foo` is not valid for this target
154
154
155
155
error: malformed `target_feature` attribute input
156
- --> $DIR/invalid-attribute.rs:37 :18
156
+ --> $DIR/invalid-attribute.rs:36 :18
157
157
|
158
158
LL | #[target_feature(bar)]
159
159
| ^^^ help: must be of the form: `enable = ".."`
160
160
161
161
error: malformed `target_feature` attribute input
162
- --> $DIR/invalid-attribute.rs:39 :18
162
+ --> $DIR/invalid-attribute.rs:38 :18
163
163
|
164
164
LL | #[target_feature(disable = "baz")]
165
165
| ^^^^^^^^^^^^^^^ help: must be of the form: `enable = ".."`
166
166
167
167
error[E0658]: `#[target_feature(..)]` can only be applied to `unsafe` functions
168
- --> $DIR/invalid-attribute.rs:43 :1
168
+ --> $DIR/invalid-attribute.rs:42 :1
169
169
|
170
170
LL | #[target_feature(enable = "sse2")]
171
171
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -177,13 +177,13 @@ LL | fn bar() {}
177
177
= help: add `#![feature(target_feature_11)]` to the crate attributes to enable
178
178
179
179
error: cannot use `#[inline(always)]` with `#[target_feature]`
180
- --> $DIR/invalid-attribute.rs:87 :1
180
+ --> $DIR/invalid-attribute.rs:86 :1
181
181
|
182
182
LL | #[inline(always)]
183
183
| ^^^^^^^^^^^^^^^^^
184
184
185
185
error[E0658]: `#[target_feature(..)]` can only be applied to `unsafe` functions
186
- --> $DIR/invalid-attribute.rs:112 :5
186
+ --> $DIR/invalid-attribute.rs:111 :5
187
187
|
188
188
LL | #[target_feature(enable = "sse2")]
189
189
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments