diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-07-30 17:35:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-30 17:35:10 +0000 |
| commit | 3c54672d1a3b7b4008fd99db6c16dfff24018f74 (patch) | |
| tree | 713b33628d22c65666d285ca719371850a721287 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 445d41909e117ea4c23401e70bbbe5ca9a25e455 (diff) | |
| parent | 642bec7617b8ad2cb1d3a036991e130166c4ffaf (diff) | |
| download | rust-3c54672d1a3b7b4008fd99db6c16dfff24018f74.tar.gz rust-3c54672d1a3b7b4008fd99db6c16dfff24018f74.zip | |
Optimize some usages of `!!` and `--` in suggestions (#15366)
When an expression is made of a `!` or `-` unary operator which does not change the type of the expression, use a new variant in `Sugg` to denote it. This allows replacing an extra application of the same operator by the removal of the original operator instead. Some suggestions will now be shown as `x` instead of `!!x`. Right now, no suggestion seems to produce `--x`. changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
