@@ -97,6 +97,11 @@ LL | |
9797LL | | sym G,
9898LL | | );
9999 | |_____^
100+ |
101+ help: consider specifying that the asm block is responsible for returning, if desired
102+ |
103+ LL | sym G, options(noreturn),
104+ | +++++++++++++++++++
100105
101106error[E0787]: naked functions must contain a single asm block
102107 --> $DIR/naked-functions.rs:53:1
@@ -131,18 +136,33 @@ error[E0787]: asm in naked functions must use `noreturn` option
131136 |
132137LL | asm!("");
133138 | ^^^^^^^^
139+ |
140+ help: consider specifying that the asm block is responsible for returning, if desired
141+ |
142+ LL | asm!("", options(noreturn));
143+ | +++++++++++++++++++
134144
135145error[E0787]: asm in naked functions must use `noreturn` option
136146 --> $DIR/naked-functions.rs:85:5
137147 |
138148LL | asm!("");
139149 | ^^^^^^^^
150+ |
151+ help: consider specifying that the asm block is responsible for returning, if desired
152+ |
153+ LL | asm!("", options(noreturn));
154+ | +++++++++++++++++++
140155
141156error[E0787]: asm in naked functions must use `noreturn` option
142157 --> $DIR/naked-functions.rs:87:5
143158 |
144159LL | asm!("");
145160 | ^^^^^^^^
161+ |
162+ help: consider specifying that the asm block is responsible for returning, if desired
163+ |
164+ LL | asm!("", options(noreturn));
165+ | +++++++++++++++++++
146166
147167error[E0787]: naked functions must contain a single asm block
148168 --> $DIR/naked-functions.rs:81:1
@@ -198,6 +218,11 @@ error[E0787]: asm in naked functions must use `noreturn` option
198218 |
199219LL | asm!("", options(readonly, nostack), options(pure));
200220 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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+ | +++++++++++++++++++
201226
202227error[E0787]: asm options unsupported in naked functions: `may_unwind`
203228 --> $DIR/naked-functions.rs:118:5
0 commit comments