Haoran Wang
b6eb265902
Keep redundant-capture suggestions syntactically valid
...
The lint suggestion now removes the `+` joiner adjacent to a redundant
`use<...>` clause, so applying the suggestion does not leave a dangling
`+` that fails to parse.
The existing `tests/ui/impl-trait/precise-capturing/redundant.stderr`
baseline emits the same diagnostic with the expanded suggestion span and
is blessed along with the new `run-rustfix` test.
Tested:
- ./x test tests/ui/impl-trait/precise-capturing/redundant.rs --force-rerun
- ./x test tests/ui/impl-trait/precise-capturing/redundant-machine-applicable.rs --force-rerun
- ./x test tidy
2026-05-23 19:14:47 +08:00
..
2026-02-28 11:08:02 +01:00
2026-03-17 17:39:59 +08:00
2026-04-09 18:53:59 +02:00
2025-10-31 20:44:01 +00:00
2026-05-02 21:07:23 +08:00
2026-03-28 16:18:11 +09:00
2025-10-13 15:26:22 +01:00
2025-11-27 11:19:00 -05:00
2026-05-02 21:07:23 +08:00
2026-05-23 19:14:47 +08:00
2026-04-14 21:14:10 +10:00
2026-04-07 16:06:24 +08:00
2026-02-18 18:33:35 +00:00
2025-10-12 08:24:39 +09:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-03-02 19:31:15 +01:00
2026-04-26 17:43:40 +05:30
2026-03-21 20:10:07 +00:00
2026-03-21 20:10:07 +00:00
2026-03-21 20:10:07 +00:00
2026-03-21 20:10:07 +00:00
2026-04-20 13:59:39 +05:30
2026-04-10 12:14:07 +02:00
2026-03-04 08:06:45 +08:00
2026-04-20 16:46:57 +06:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2026-02-28 11:08:02 +01:00
2026-02-28 11:08:02 +01:00
2026-02-28 11:08:02 +01:00
2025-10-07 09:51:16 +01:00
2025-10-07 09:51:16 +01:00
2025-10-12 16:51:28 +09:00
2025-10-12 16:51:28 +09:00
2025-10-12 16:51:28 +09:00
2025-11-21 21:42:40 +09:00
2025-11-21 21:42:40 +09:00
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2025-10-12 16:51:28 +09:00
2025-10-12 16:51:28 +09:00
2026-01-22 19:50:00 +01:00
2026-01-22 19:50:00 +01:00
2026-03-02 19:31:15 +01:00
2025-10-07 23:02:23 +01:00
2025-10-31 20:44:01 +00:00
2025-10-13 15:26:22 +01:00
2025-12-10 06:52:27 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-03-16 17:58:49 +00:00
2025-12-02 18:25:13 +00:00
2026-04-26 17:43:40 +05:30
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2025-10-31 20:44:01 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-28 05:29:28 +00:00
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2026-05-02 21:07:23 +08:00
2026-03-02 19:31:15 +01:00
2025-11-27 14:13:58 -05:00
2026-03-16 17:58:49 +00:00
2025-11-27 14:13:58 -05:00
2026-04-06 18:10:08 -07:00