Provide a better suggestion message, and make the suggestion verbose.
```
error[E0703]: invalid ABI: found `riscv-interrupt`
--> $DIR/riscv-discoverability-guidance.rs:17:8
|
LL | extern "riscv-interrupt" fn isr() {}
| ^^^^^^^^^^^^^^^^^ invalid ABI
|
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
help: there's a similarly named valid ABI `"riscv-interrupt-m"`
|
LL | extern "riscv-interrupt-m" fn isr() {}
| ++
```
17 lines
485 B
Plaintext
17 lines
485 B
Plaintext
error[E0703]: invalid ABI: found `cdedl`
|
|
--> $DIR/abi-typo.rs:2:8
|
|
|
|
|
LL | extern "cdedl" fn cdedl() {}
|
|
| ^^^^^^^ invalid ABI
|
|
|
|
|
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
|
|
help: there's a similarly named valid ABI `cdecl`
|
|
|
|
|
LL - extern "cdedl" fn cdedl() {}
|
|
LL + extern "cdecl" fn cdedl() {}
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0703`.
|