bors
a9d0a6f155
Auto merge of #138271 - mu001999-contrib:fix-138234, r=jackh726
...
Keep space if arg does not follow punctuation when lint unused parens
Fixes rust-lang/rust#138234
If the arg follows punctuation, still pass `left_pos` with `None` and no space will be added, else then pass `left_pos` with `Some(arg.span.lo())`, so that we can add the space as expected.
And `emit_unused_delims` can make sure no more space will be added if the expr follows space.
---
Edited:
Directly use the `value_span` to check whether the expr removed parens will follow identifier or be followed by identifier.
2025-09-16 18:43:49 +00:00
..
2025-08-10 22:50:14 +09:00
2025-05-08 21:17:33 +08:00
2025-07-16 01:44:02 -07:00
2025-09-06 21:46:33 +02:00
2025-08-20 16:49:35 +00:00
2025-08-19 21:27:10 +02:00
2025-07-29 10:32:15 +02:00
2025-08-30 16:24:26 +00:00
2025-06-18 00:36:51 +08:00
2025-07-28 17:35:09 +03:00
2025-08-19 21:27:10 +02:00
2025-08-19 21:27:10 +02:00
2025-09-10 11:45:24 -07:00
2025-08-26 15:15:17 -06:00
2025-06-03 11:45:58 +02:00
2025-08-19 21:27:10 +02:00
2025-07-31 22:35:22 +02:00
2025-07-31 22:35:22 +02:00
2025-08-15 11:59:23 +02:00
2025-08-15 11:59:23 +02:00
2025-08-15 11:59:23 +02:00
2025-06-12 07:57:12 +00:00
2025-06-12 07:57:12 +00:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-08-19 21:27:10 +02:00
2025-06-12 07:57:12 +00:00
2025-08-19 21:27:10 +02:00
2025-05-27 21:14:48 +02:00
2025-05-27 21:14:48 +02:00
2025-05-27 21:14:48 +02:00
2025-07-16 01:44:02 -07:00
2025-08-24 14:54:15 +02:00
2025-08-24 14:54:15 +02:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2025-08-27 20:36:30 +02:00
2025-08-27 20:36:30 +02:00
2025-08-24 00:03:53 +02:00
2025-08-24 00:03:53 +02:00
2025-08-24 00:03:54 +02:00
2025-07-18 13:41:34 -03:00
2025-07-18 13:41:34 -03:00
2025-08-25 21:31:04 +02:00
2025-07-05 18:37:11 +00:00
2025-07-16 01:44:02 -07:00
2025-06-03 13:35:31 +02:00
2025-06-03 13:35:31 +02:00
2025-07-17 11:24:17 +09:00
2025-07-17 11:24:17 +09:00
2025-08-11 16:00:49 +00:00
2025-08-25 21:31:04 +02:00
2025-06-03 13:35:31 +02:00
2025-06-22 16:45:16 +02:00
2025-06-22 16:45:16 +02:00
2025-08-19 21:27:10 +02:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-07-17 23:19:12 +00:00
2025-07-17 23:19:12 +00:00
2025-06-03 13:35:31 +02:00
2025-06-03 13:35:31 +02:00
2025-07-01 08:56:20 +02:00
2025-07-01 08:56:20 +02:00
2025-07-01 08:56:20 +02:00
2025-08-19 21:27:10 +02:00
2025-08-19 21:27:10 +02:00
2025-06-30 12:45:47 +05:00
2025-06-30 12:45:47 +05:00
2025-07-25 20:38:54 +05:00
2025-05-31 19:49:19 +05:00
2025-08-19 21:27:10 +02:00
2025-08-19 21:27:10 +02:00
2025-08-19 21:27:10 +02:00
2025-07-13 13:50:00 +00:00
2025-05-29 10:24:23 +00:00
2025-09-16 11:31:59 +00:00
2025-09-16 11:31:59 +00:00
2025-09-16 11:31:59 +00:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-08-10 11:54:15 -04:00
2025-07-10 08:00:20 -06:00
2025-08-14 18:18:42 +02:00
2025-08-21 13:15:30 +02:00
2025-07-31 02:28:11 +00:00
2025-07-31 02:28:11 +00:00