1
1
error: asm with the `pure` option must have at least one output
2
- --> $DIR/naked-functions.rs:111 :14
2
+ --> $DIR/naked-functions.rs:110 :14
3
3
|
4
4
LL | asm!("", options(readonly, nostack), options(pure));
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
6
6
7
7
error: patterns not allowed in naked function parameters
8
- --> $DIR/naked-functions.rs:21 :5
8
+ --> $DIR/naked-functions.rs:20 :5
9
9
|
10
10
LL | mut a: u32,
11
11
| ^^^^^
12
12
13
13
error: patterns not allowed in naked function parameters
14
- --> $DIR/naked-functions.rs:23 :5
14
+ --> $DIR/naked-functions.rs:22 :5
15
15
|
16
16
LL | &b: &i32,
17
17
| ^^
18
18
19
19
error: patterns not allowed in naked function parameters
20
- --> $DIR/naked-functions.rs:25 :6
20
+ --> $DIR/naked-functions.rs:24 :6
21
21
|
22
22
LL | (None | Some(_)): Option<std::ptr::NonNull<u8>>,
23
23
| ^^^^^^^^^^^^^^
24
24
25
25
error: patterns not allowed in naked function parameters
26
- --> $DIR/naked-functions.rs:27 :5
26
+ --> $DIR/naked-functions.rs:26 :5
27
27
|
28
28
LL | P { x, y }: P,
29
29
| ^^^^^^^^^^
30
30
31
31
error: referencing function parameters is not allowed in naked functions
32
- --> $DIR/naked-functions.rs:36 :5
32
+ --> $DIR/naked-functions.rs:35 :5
33
33
|
34
34
LL | a + 1
35
35
| ^
36
36
|
37
37
= help: follow the calling convention in asm block to use parameters
38
38
39
39
error[E0787]: naked functions must contain a single asm block
40
- --> $DIR/naked-functions.rs:34 :1
40
+ --> $DIR/naked-functions.rs:33 :1
41
41
|
42
42
LL | / pub unsafe extern "C" fn inc(a: u32) -> u32 {
43
43
LL | |
@@ -48,21 +48,21 @@ LL | | }
48
48
| |_^
49
49
50
50
error: referencing function parameters is not allowed in naked functions
51
- --> $DIR/naked-functions.rs:42 :31
51
+ --> $DIR/naked-functions.rs:41 :31
52
52
|
53
53
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
54
54
| ^
55
55
|
56
56
= help: follow the calling convention in asm block to use parameters
57
57
58
58
error[E0787]: only `const` and `sym` operands are supported in naked functions
59
- --> $DIR/naked-functions.rs:42 :23
59
+ --> $DIR/naked-functions.rs:41 :23
60
60
|
61
61
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
62
62
| ^^^^^^^^^
63
63
64
64
error[E0787]: naked functions must contain a single asm block
65
- --> $DIR/naked-functions.rs:48 :1
65
+ --> $DIR/naked-functions.rs:47 :1
66
66
|
67
67
LL | / pub unsafe extern "C" fn inc_closure(a: u32) -> u32 {
68
68
LL | |
@@ -72,7 +72,7 @@ LL | | }
72
72
| |_^
73
73
74
74
error[E0787]: only `const` and `sym` operands are supported in naked functions
75
- --> $DIR/naked-functions.rs:65 :10
75
+ --> $DIR/naked-functions.rs:64 :10
76
76
|
77
77
LL | in(reg) a,
78
78
| ^^^^^^^^^
@@ -87,7 +87,7 @@ LL | out(reg) e,
87
87
| ^^^^^^^^^^
88
88
89
89
error[E0787]: asm in naked functions must use `noreturn` option
90
- --> $DIR/naked-functions.rs:63 :5
90
+ --> $DIR/naked-functions.rs:62 :5
91
91
|
92
92
LL | / asm!("/* {0} {1} {2} {3} {4} {5} {6} */",
93
93
LL | |
@@ -99,7 +99,7 @@ LL | | );
99
99
| |_____^
100
100
101
101
error[E0787]: naked functions must contain a single asm block
102
- --> $DIR/naked-functions.rs:54 :1
102
+ --> $DIR/naked-functions.rs:53 :1
103
103
|
104
104
LL | / pub unsafe extern "C" fn unsupported_operands() {
105
105
LL | |
@@ -119,33 +119,33 @@ LL | | }
119
119
| |_^
120
120
121
121
error[E0787]: naked functions must contain a single asm block
122
- --> $DIR/naked-functions.rs:77 :1
122
+ --> $DIR/naked-functions.rs:76 :1
123
123
|
124
124
LL | / pub extern "C" fn missing_assembly() {
125
125
LL | |
126
126
LL | | }
127
127
| |_^
128
128
129
129
error[E0787]: asm in naked functions must use `noreturn` option
130
- --> $DIR/naked-functions.rs:84 :5
130
+ --> $DIR/naked-functions.rs:83 :5
131
131
|
132
132
LL | asm!("");
133
133
| ^^^^^^^^
134
134
135
135
error[E0787]: asm in naked functions must use `noreturn` option
136
- --> $DIR/naked-functions.rs:86 :5
136
+ --> $DIR/naked-functions.rs:85 :5
137
137
|
138
138
LL | asm!("");
139
139
| ^^^^^^^^
140
140
141
141
error[E0787]: asm in naked functions must use `noreturn` option
142
- --> $DIR/naked-functions.rs:88 :5
142
+ --> $DIR/naked-functions.rs:87 :5
143
143
|
144
144
LL | asm!("");
145
145
| ^^^^^^^^
146
146
147
147
error[E0787]: naked functions must contain a single asm block
148
- --> $DIR/naked-functions.rs:82 :1
148
+ --> $DIR/naked-functions.rs:81 :1
149
149
|
150
150
LL | / pub extern "C" fn too_many_asm_blocks() {
151
151
LL | |
@@ -163,15 +163,15 @@ LL | | }
163
163
| |_^
164
164
165
165
error: referencing function parameters is not allowed in naked functions
166
- --> $DIR/naked-functions.rs:97 :11
166
+ --> $DIR/naked-functions.rs:96 :11
167
167
|
168
168
LL | *&y
169
169
| ^
170
170
|
171
171
= help: follow the calling convention in asm block to use parameters
172
172
173
173
error[E0787]: naked functions must contain a single asm block
174
- --> $DIR/naked-functions.rs:95 :5
174
+ --> $DIR/naked-functions.rs:94 :5
175
175
|
176
176
LL | / pub extern "C" fn inner(y: usize) -> usize {
177
177
LL | |
@@ -182,75 +182,75 @@ LL | | }
182
182
| |_____^
183
183
184
184
error[E0787]: asm options unsupported in naked functions: `nomem`, `preserves_flags`
185
- --> $DIR/naked-functions.rs:105 :5
185
+ --> $DIR/naked-functions.rs:104 :5
186
186
|
187
187
LL | asm!("", options(nomem, preserves_flags, noreturn));
188
188
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
189
189
190
190
error[E0787]: asm options unsupported in naked functions: `nostack`, `pure`, `readonly`
191
- --> $DIR/naked-functions.rs:111 :5
191
+ --> $DIR/naked-functions.rs:110 :5
192
192
|
193
193
LL | asm!("", options(readonly, nostack), options(pure));
194
194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195
195
196
196
error[E0787]: asm in naked functions must use `noreturn` option
197
- --> $DIR/naked-functions.rs:111 :5
197
+ --> $DIR/naked-functions.rs:110 :5
198
198
|
199
199
LL | asm!("", options(readonly, nostack), options(pure));
200
200
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201
201
202
202
error[E0787]: asm options unsupported in naked functions: `may_unwind`
203
- --> $DIR/naked-functions.rs:119 :5
203
+ --> $DIR/naked-functions.rs:118 :5
204
204
|
205
205
LL | asm!("", options(noreturn, may_unwind));
206
206
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
207
208
208
warning: Rust ABI is unsupported in naked functions
209
- --> $DIR/naked-functions.rs:124 :15
209
+ --> $DIR/naked-functions.rs:123 :15
210
210
|
211
211
LL | pub unsafe fn default_abi() {
212
212
| ^^^^^^^^^^^
213
213
|
214
214
= note: `#[warn(undefined_naked_function_abi)]` on by default
215
215
216
216
warning: Rust ABI is unsupported in naked functions
217
- --> $DIR/naked-functions.rs:130:15
217
+ --> $DIR/naked-functions.rs:129:29
218
218
|
219
- LL | pub unsafe fn rust_abi() {
220
- | ^^^^^^^^
219
+ LL | pub unsafe extern "Rust" fn rust_abi() {
220
+ | ^^^^^^^^
221
221
222
222
error: naked functions cannot be inlined
223
- --> $DIR/naked-functions.rs:170 :1
223
+ --> $DIR/naked-functions.rs:169 :1
224
224
|
225
225
LL | #[inline]
226
226
| ^^^^^^^^^
227
227
228
228
error: naked functions cannot be inlined
229
- --> $DIR/naked-functions.rs:177 :1
229
+ --> $DIR/naked-functions.rs:176 :1
230
230
|
231
231
LL | #[inline(always)]
232
232
| ^^^^^^^^^^^^^^^^^
233
233
234
234
error: naked functions cannot be inlined
235
- --> $DIR/naked-functions.rs:184 :1
235
+ --> $DIR/naked-functions.rs:183 :1
236
236
|
237
237
LL | #[inline(never)]
238
238
| ^^^^^^^^^^^^^^^^
239
239
240
240
error: naked functions cannot be inlined
241
- --> $DIR/naked-functions.rs:191 :1
241
+ --> $DIR/naked-functions.rs:190 :1
242
242
|
243
243
LL | #[inline]
244
244
| ^^^^^^^^^
245
245
246
246
error: naked functions cannot be inlined
247
- --> $DIR/naked-functions.rs:193 :1
247
+ --> $DIR/naked-functions.rs:192 :1
248
248
|
249
249
LL | #[inline(always)]
250
250
| ^^^^^^^^^^^^^^^^^
251
251
252
252
error: naked functions cannot be inlined
253
- --> $DIR/naked-functions.rs:195 :1
253
+ --> $DIR/naked-functions.rs:194 :1
254
254
|
255
255
LL | #[inline(never)]
256
256
| ^^^^^^^^^^^^^^^^
0 commit comments