Esteban Küber
921de9d8ea
Revert suggestion verbosity change
2024-07-22 22:51:53 +00:00
Esteban Küber
5c2b36a21c
Change suggestion message wording
2024-07-22 22:04:49 +00:00
Esteban Küber
c807ac0340
Use verbose suggestion for "wrong # of generics"
2024-07-22 22:04:49 +00:00
long-long-float
332b41dbce
Use ordinal number in argument error
...
Fix error message
Fix tests
Format
2024-07-14 13:50:09 +09:00
Esteban Küber
8e9a3661a8
Use verbose style for argument removal suggestion
2024-07-05 19:40:09 +00:00
yukang
9f32459c98
Fix incorrect suggestion for extra argument with a type error
2024-07-03 06:15:24 +08: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
bf66723c0e
Test and note unsafe ctor to fn ptr coercion
...
Also remove a note that I don't consider to be very useful in context.
2023-08-30 15:09:40 -07:00
Esteban Küber
b6494a7bb4
More accurately point at arguments
2023-08-26 19:25:46 +00:00
Lukas Markeffsky
985036b5a1
add more tests for argument removal with wacky spans
2023-08-01 16:51:21 +00:00
Lukas Markeffsky
37d62fbf9e
don't remove args for function calls coming from macro expansions
2023-08-01 16:51:20 +00:00
Lukas Markeffsky
3694fd08e6
introduce Span::find_ancestor_inside_same_ctxt
...
and use it for function argument diagnostics
2023-08-01 16:51:20 +00:00
Lukas Markeffsky
10ef96f6a5
add macro test cases to extra arguments test
2023-07-30 19:22:26 +02:00
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