about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-06-05 22:03:05 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-06-05 23:27:35 +0200
commit2037075b38ae2af58b1c0b6860a559892f766fa4 (patch)
tree5b601cf90a8a71985a3548ba7d75db8fb2c3bf38 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentf8a3929c3cc09a63677519f9b5a5da9b25cdd336 (diff)
downloadrust-2037075b38ae2af58b1c0b6860a559892f766fa4.tar.gz
rust-2037075b38ae2af58b1c0b6860a559892f766fa4.zip
`Sugg`: do not parenthesize a double unary operator
For example, adding `*` in front of `*expression` is best shown as
`**expression` rather than `*(*expression)`.

This is not perfect, as it checks whether the operator is already a prefix
of the expression, but it is better than it was before. For example,
`&`+`&mut x` will get `&&mut x` but `&mut `+`&x` will get `&mut (&x)`
as it did before this change.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions