Reword purpose description of noreturn in naked function

This commit is contained in:
jam1garner 2022-04-01 11:28:45 -04:00
parent b657cb5577
commit f793b696c8
2 changed files with 6 additions and 6 deletions

View File

@ -289,7 +289,7 @@ fn check_inline_asm(&self, asm: &'tcx hir::InlineAsm<'tcx>, span: Span) {
.span_suggestion( .span_suggestion(
last_span, last_span,
"consider specifying that the asm block is responsible \ "consider specifying that the asm block is responsible \
for returning, if desired", for returning from the function",
String::from(", options(noreturn)"), String::from(", options(noreturn)"),
Applicability::MachineApplicable, Applicability::MachineApplicable,
) )

View File

@ -98,7 +98,7 @@ LL | | sym G,
LL | | ); LL | | );
| |_____^ | |_____^
| |
help: consider specifying that the asm block is responsible for returning, if desired help: consider specifying that the asm block is responsible for returning from the function
| |
LL | sym G, options(noreturn), LL | sym G, options(noreturn),
| +++++++++++++++++++ | +++++++++++++++++++
@ -137,7 +137,7 @@ error[E0787]: asm in naked functions must use `noreturn` option
LL | asm!(""); LL | asm!("");
| ^^^^^^^^ | ^^^^^^^^
| |
help: consider specifying that the asm block is responsible for returning, if desired help: consider specifying that the asm block is responsible for returning from the function
| |
LL | asm!("", options(noreturn)); LL | asm!("", options(noreturn));
| +++++++++++++++++++ | +++++++++++++++++++
@ -148,7 +148,7 @@ error[E0787]: asm in naked functions must use `noreturn` option
LL | asm!(""); LL | asm!("");
| ^^^^^^^^ | ^^^^^^^^
| |
help: consider specifying that the asm block is responsible for returning, if desired help: consider specifying that the asm block is responsible for returning from the function
| |
LL | asm!("", options(noreturn)); LL | asm!("", options(noreturn));
| +++++++++++++++++++ | +++++++++++++++++++
@ -159,7 +159,7 @@ error[E0787]: asm in naked functions must use `noreturn` option
LL | asm!(""); LL | asm!("");
| ^^^^^^^^ | ^^^^^^^^
| |
help: consider specifying that the asm block is responsible for returning, if desired help: consider specifying that the asm block is responsible for returning from the function
| |
LL | asm!("", options(noreturn)); LL | asm!("", options(noreturn));
| +++++++++++++++++++ | +++++++++++++++++++
@ -219,7 +219,7 @@ error[E0787]: asm in naked functions must use `noreturn` option
LL | asm!("", options(readonly, nostack), options(pure)); LL | asm!("", options(readonly, nostack), options(pure));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
help: consider specifying that the asm block is responsible for returning, if desired help: consider specifying that the asm block is responsible for returning from the function
| |
LL | asm!("", options(noreturn), options(readonly, nostack), options(pure)); LL | asm!("", options(noreturn), options(readonly, nostack), options(pure));
| +++++++++++++++++++ | +++++++++++++++++++