about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2025-06-20 22:00:40 +0000
committerGitHub <noreply@github.com>2025-06-20 22:00:40 +0000
commit37cb83488afb47c3405da01f170def7ac4104f51 (patch)
tree65ed37b7fa30791d98da70784c8c9752079e41fd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent98555244f05499b1cad768713da9a10d80992964 (diff)
parent2037075b38ae2af58b1c0b6860a559892f766fa4 (diff)
downloadrust-37cb83488afb47c3405da01f170def7ac4104f51.tar.gz
rust-37cb83488afb47c3405da01f170def7ac4104f51.zip
`Sugg`: do not parenthesize a double unary operator (#14983)
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.

changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions