mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
3c54672d1a
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