about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/select
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-03-01 05:49:56 +0100
committerGitHub <noreply@github.com>2025-03-01 05:49:56 +0100
commite5a639dbd020f9f76b799c15e1343f3d26f5b2cf (patch)
treef2ffc96c2e39855bf8305a0f4d6dcb3bd38153b4 /compiler/rustc_trait_selection/src/traits/select
parent472bc0ee257ab6f387e5d9b9dd2a718372fa0c3a (diff)
parent86945c0a545643457e551a78e8c2a90355d0f17c (diff)
downloadrust-e5a639dbd020f9f76b799c15e1343f3d26f5b2cf.tar.gz
rust-e5a639dbd020f9f76b799c15e1343f3d26f5b2cf.zip
Rollup merge of #137771 - estebank:abi-sugg, r=compiler-errors
Tweak incorrect ABI suggestion and make suggestion verbose

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() {}
   |                        ++
```
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/select')
0 files changed, 0 insertions, 0 deletions