compiler: fixup error message for x86-interrupt invalid returns

This commit is contained in:
Jubilee Young 2025-06-26 18:02:54 -07:00
parent 1045b70304
commit db33e98540
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ ast_passes_abi_must_not_have_parameters_or_return_type=
ast_passes_abi_must_not_have_return_type=
invalid signature for `extern {$abi}` function
.note = functions with the "custom" ABI cannot have a return type
.note = functions with the {$abi} ABI cannot have a return type
.help = remove the return type
ast_passes_assoc_const_without_body =

View file

@ -4,7 +4,7 @@ error: invalid signature for `extern "x86-interrupt"` function
LL | extern "x86-interrupt" fn x86_ret() -> u8 {
| ^^
|
= note: functions with the "custom" ABI cannot have a return type
= note: functions with the "x86-interrupt" ABI cannot have a return type
help: remove the return type
--> $DIR/interrupt-invalid-signature.rs:83:40
|

View file

@ -4,7 +4,7 @@ error: invalid signature for `extern "x86-interrupt"` function
LL | extern "x86-interrupt" fn x86_ret() -> u8 {
| ^^
|
= note: functions with the "custom" ABI cannot have a return type
= note: functions with the "x86-interrupt" ABI cannot have a return type
help: remove the return type
--> $DIR/interrupt-invalid-signature.rs:83:40
|