Skip to content

Commit 6a62830

Browse files
compiler: fixup error message for x86-interrupt invalid returns
1 parent 0af1e4a commit 6a62830

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_ast_passes/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ast_passes_abi_must_not_have_parameters_or_return_type=
1717
1818
ast_passes_abi_must_not_have_return_type=
1919
invalid signature for `extern {$abi}` function
20-
.note = functions with the "custom" ABI cannot have a return type
20+
.note = functions with the {$abi} ABI cannot have a return type
2121
.help = remove the return type
2222
2323
ast_passes_assoc_const_without_body =

tests/ui/abi/interrupt-invalid-signature.i686.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: invalid signature for `extern "x86-interrupt"` function
44
LL | extern "x86-interrupt" fn x86_ret() -> u8 {
55
| ^^
66
|
7-
= note: functions with the "custom" ABI cannot have a return type
7+
= note: functions with the "x86-interrupt" ABI cannot have a return type
88
help: remove the return type
99
--> $DIR/interrupt-invalid-signature.rs:83:40
1010
|

tests/ui/abi/interrupt-invalid-signature.x64.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: invalid signature for `extern "x86-interrupt"` function
44
LL | extern "x86-interrupt" fn x86_ret() -> u8 {
55
| ^^
66
|
7-
= note: functions with the "custom" ABI cannot have a return type
7+
= note: functions with the "x86-interrupt" ABI cannot have a return type
88
help: remove the return type
99
--> $DIR/interrupt-invalid-signature.rs:83:40
1010
|

0 commit comments

Comments
 (0)