yukang
0b20096eff
sort the errors from arguments checking so that suggestions are handled properly
2023-06-18 18:44:14 +08:00
Michael Goulet
a9051d861c
Tweak borrow suggestion
2023-05-08 03:36:30 +00:00
bors
b80ee3969f
Auto merge of #109850 - MU001999:master, r=estebank
...
Emits non-overlapping suggestions for arguments with wrong types
Fixes #109831
2023-04-11 03:07:58 +00:00
Mu42
80e4285531
Make each idx is used once
2023-04-02 11:41:50 +08:00
Mu42
bbfbecd59f
Do not repeat idx
2023-04-02 10:48:01 +08:00
Maybe Waffle
b9d5a6b709
Don't leave a comma at the start of argument list when removing arguments
2023-03-30 17:26:12 +00:00
Maybe Waffle
6975b77e3b
Add a test for issue 109396
2023-03-30 17:24:58 +00:00
Michael Howell
a5b639dc01
diagnostics: remove inconsistent English article "this" from E0107
...
Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`,
the error message where it gives additional notes about where the associated
type is defined, and how the dead code lint doesn't have an article,
like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have
articles, so it seems unnecessary to have one here.
2023-02-23 10:27:06 -07:00
Michael Howell
3f374128ee
diagnostics: update test cases to refer to assoc fn with self
as method
2023-02-22 08:40:47 -07:00
clubby789
0b9a3e29d4
Fix overlapping spans in removing extra arguments
2023-02-21 13:13:09 +00:00
Esteban Küber
dff10d0668
Re-add replacement logic and add comment explaining it
2023-02-14 20:22:10 +00:00
Esteban Küber
755252bf51
Show the effects of weird code commented out
2023-02-14 20:22:10 +00:00
Esteban Küber
bd176ee591
Make removal suggestion not verbose
2023-02-14 20:22:10 +00:00
Esteban Küber
5d63e10318
rebase and review comments
2023-02-14 20:22:10 +00:00
Esteban Küber
287cd5974c
Avoid trailing commas
2023-02-14 20:22:10 +00:00
Esteban Küber
f02d8ec15e
More accurate spans for arg removal suggestion
2023-02-14 20:22:09 +00:00
Esteban Küber
5ae8e23816
Mention fn coercion rules (needs to be expanded)
2023-01-30 21:51:33 +00:00
Esteban Küber
62ba3e70a1
Modify primary span label for E0308
...
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00