rust/src/test/ui/argument-suggestions
Matthias Krüger e369ec871e
Rollup merge of #100458 - compiler-errors:fn-argument-span, r=estebank
Adjust span of fn argument declaration

Span of a fn argument declaration goes from:

```
fn foo(i : i32 , ...)
       ^^^^^^^^
```

to:

```
fn foo(i : i32 , ...)
       ^^^^^^^
```

That is, we don't include the extra spacing up to the trailing comma, which I think is more correct.

cc https://github.com/rust-lang/rust/pull/99646#discussion_r944568074
r? ``@estebank``

---

The two tests that had dramatic changes in their rendering I think actually are improved, though they are kinda poor spans both before and after the changes. 🤷 Thoughts?
2022-08-15 20:11:35 +02:00
..
basic.rs Point at closure args too 2022-05-06 16:55:53 -04:00
basic.stderr Use typed indices in argument mismatch algorithm 2022-06-27 21:53:03 -07:00
complex.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
complex.stderr Adjust span of fn arguments 2022-08-12 15:21:39 +00:00
exotic-calls.rs Add support for APIT and RPIT callables in label_fn_like 2022-07-14 23:29:03 +00:00
exotic-calls.stderr Add support for APIT and RPIT callables in label_fn_like 2022-07-14 23:29:03 +00:00
extra_arguments.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
extra_arguments.stderr Use typed indices in argument mismatch algorithm 2022-06-27 21:53:03 -07:00
invalid_arguments.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
invalid_arguments.stderr Point out a single arg if we have a single arg incompatibility 2022-08-12 15:18:39 +00:00
issue-96638.rs Mitigate impact of subtle invalid call suggestion logic 2022-05-02 19:24:56 +00:00
issue-96638.stderr Label argument coercion errors 2022-08-13 18:24:36 +00:00
issue-97197.rs Fix some typos in arg checking algorithm 2022-05-22 22:07:09 -07:00
issue-97197.stderr Make missing argument placeholder more obvious that it's a placeholder 2022-06-19 15:10:42 -07:00
issue-97484.rs add regression test 2022-05-30 12:08:38 -07:00
issue-97484.stderr Label argument coercion errors 2022-08-13 18:24:36 +00:00
issue-98894.rs Add some additional double-adjustment regression tests 2022-07-18 03:46:20 +00:00
issue-98894.stderr Add some additional double-adjustment regression tests 2022-07-18 03:46:20 +00:00
issue-98897.rs Add some additional double-adjustment regression tests 2022-07-18 03:46:20 +00:00
issue-98897.stderr Add some additional double-adjustment regression tests 2022-07-18 03:46:20 +00:00
issue-99482.rs Fix a numerical underflow in tuple wrap suggestion 2022-07-19 22:48:40 +00:00
issue-99482.stderr Fix a numerical underflow in tuple wrap suggestion 2022-07-19 22:48:40 +00:00
issue-100154.rs opt node type 2022-08-04 22:43:39 +00:00
issue-100154.stderr opt node type 2022-08-04 22:43:39 +00:00
missing_arguments.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
missing_arguments.stderr Make missing argument placeholder more obvious that it's a placeholder 2022-06-19 15:10:42 -07:00
mixed_cases.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
mixed_cases.stderr Use typed indices in argument mismatch algorithm 2022-06-27 21:53:03 -07:00
permuted_arguments.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
permuted_arguments.stderr fix typo 2022-05-30 12:08:38 -07:00
swapped_arguments.rs Implementation for 65853 2022-04-16 02:26:56 -04:00
swapped_arguments.stderr fix typo 2022-05-30 12:08:38 -07:00
too-long.rs Point out a single arg if we have a single arg incompatibility 2022-08-12 15:18:39 +00:00
too-long.stderr Point out a single arg if we have a single arg incompatibility 2022-08-12 15:18:39 +00:00
two-mismatch-notes.rs Do not inline non-simple argument type errors into labels 2022-08-13 18:24:36 +00:00
two-mismatch-notes.stderr Do not inline non-simple argument type errors into labels 2022-08-13 18:24:36 +00:00