Commit Graph

13 Commits

Author SHA1 Message Date
Jonathan Brouwer
6c55beb2a2 Rollup merge of #160835 - mejrs:resolve_labels, r=JohnTitor
resolver diagnostics: don't swallow labels and point out  similar items as a note, not a label

This was also swallowing labels from `diagnostic:on_unknown`; a typo suggestion would override it.
2026-08-22 10:48:37 +02:00
Bang, Ly {MMSL~BASEL}
87fd65991e Add regression test for missing size bound suggestion for trait item 2026-08-18 00:03:40 +07:00
mejrs
9ac7293a8a resolver diagnostics: don't swallow labels and point out similar items as a note, not a label 2026-08-13 14:12:34 +02:00
Muhtasim-Rasheed
b1786813df Make E0284 generic argument suggestions more explicit 2026-04-20 16:46:57 +06:00
Usman Akinyemi
f60b6499d8 rustc_resolve: improve const generic errors
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
2026-03-19 11:49:30 +05:30
xonx4l
4b000cfacd Merge E0412 into E0425 2025-12-02 18:25:13 +00:00
León Orell Valerian Liehr
02ea38cfff Fortify generic param default checks 2025-08-06 01:26:26 +02:00
Esteban Küber
f0845adb0c Show diff suggestion format on verbose replacement
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
2025-02-10 20:21:39 +00:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
Nilstrieb
41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
Michael Goulet
73038d3a64 Make missing impl item suggestions more obvious that they're missing 2023-04-19 17:57:37 +00:00
León Orell Valerian Liehr
f2acafe9e2 suggest adding const param 2023-04-07 09:11:53 +02:00
Albert Larsan
cf2dff2b1e Move /src/test to /tests 2023-01-11 09:32:08 +00:00