@@ -97,6 +97,11 @@ LL | |
97
97
LL | | sym G,
98
98
LL | | );
99
99
| |_____^
100
+ |
101
+ help: consider specifying that the asm block is responsible for returning, if desired
102
+ |
103
+ LL | sym G, options(noreturn),
104
+ | +++++++++++++++++++
100
105
101
106
error[E0787]: naked functions must contain a single asm block
102
107
--> $DIR/naked-functions.rs:53:1
@@ -131,18 +136,33 @@ error[E0787]: asm in naked functions must use `noreturn` option
131
136
|
132
137
LL | asm!("");
133
138
| ^^^^^^^^
139
+ |
140
+ help: consider specifying that the asm block is responsible for returning, if desired
141
+ |
142
+ LL | asm!("", options(noreturn));
143
+ | +++++++++++++++++++
134
144
135
145
error[E0787]: asm in naked functions must use `noreturn` option
136
146
--> $DIR/naked-functions.rs:85:5
137
147
|
138
148
LL | asm!("");
139
149
| ^^^^^^^^
150
+ |
151
+ help: consider specifying that the asm block is responsible for returning, if desired
152
+ |
153
+ LL | asm!("", options(noreturn));
154
+ | +++++++++++++++++++
140
155
141
156
error[E0787]: asm in naked functions must use `noreturn` option
142
157
--> $DIR/naked-functions.rs:87:5
143
158
|
144
159
LL | asm!("");
145
160
| ^^^^^^^^
161
+ |
162
+ help: consider specifying that the asm block is responsible for returning, if desired
163
+ |
164
+ LL | asm!("", options(noreturn));
165
+ | +++++++++++++++++++
146
166
147
167
error[E0787]: naked functions must contain a single asm block
148
168
--> $DIR/naked-functions.rs:81:1
@@ -198,6 +218,11 @@ error[E0787]: asm in naked functions must use `noreturn` option
198
218
|
199
219
LL | asm!("", options(readonly, nostack), options(pure));
200
220
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
221
+ |
222
+ help: consider specifying that the asm block is responsible for returning, if desired
223
+ |
224
+ LL | asm!("", options(noreturn), options(readonly, nostack), options(pure));
225
+ | +++++++++++++++++++
201
226
202
227
error[E0787]: asm options unsupported in naked functions: `may_unwind`
203
228
--> $DIR/naked-functions.rs:118:5
0 commit comments