Fix panic when formatting comments in unary expressions #21501
failed attempt at re-partitioning dangling comments
9fda4d1a
looking very reasonable
e7a838a0
grab the tests from the other PR, update needs_parentheses
7b1da064
remove commented code
d9486aa4
heavy debugging, I think I found the root cause
e4dc4b2a
revert debugging code, get something working?
2d9b3fe6
update comments and range variable name
c7fc1212
avoid computing operand_start for each dangling comment
60317c83
try dangling as trailing
7e193df2
ntBre
commented
on 2025-11-17
ntBre
marked this pull request as ready for review 304 days ago
update handle_unary_op_comment docs
31d43c58
reuse leading_operand_comments
a50e006c
simplify has_dangling check, move it before Never case
bd612c4d
revert some now-unnecessary changes
91cb799f
convert back to guarded returns
c0d4d91a
factor out needs_line_break, fix parenthesize bug
58cd40f4
add a few more tests
d89e1c27
needs_line_break => OptionalParentheses::Always
9d86a5c5
add co-author
9e161513
ntBre
merged
cbc6863b
into main 303 days ago
ntBre
deleted the brent/unary-3 branch 303 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub