diff options
| author | bors <bors@rust-lang.org> | 2025-09-16 18:43:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-16 18:43:49 +0000 |
| commit | a9d0a6f15533a364816c4d81e2192009ef601d33 (patch) | |
| tree | 37aad937b063deadab2f8703c90aaaa8f3658511 /compiler/rustc_borrowck/src/lib.rs | |
| parent | eec6bd9d69832f57341c6de6a93fa7b9f47e2111 (diff) | |
| parent | 9991ec282f3ff08c895e4a5262259139fe689953 (diff) | |
| download | rust-a9d0a6f15533a364816c4d81e2192009ef601d33.tar.gz rust-a9d0a6f15533a364816c4d81e2192009ef601d33.zip | |
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.
Diffstat (limited to 'compiler/rustc_borrowck/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
