]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #88672 - camelid:inc-parser-sugg, r=davidtwco
authorbors <bors@rust-lang.org>
Sun, 3 Apr 2022 05:24:20 +0000 (05:24 +0000)
committerbors <bors@rust-lang.org>
Sun, 3 Apr 2022 05:24:20 +0000 (05:24 +0000)
commit133859d680ffe31072b80f518377fa0c487359d9
tree75fc76dceb5fb4b8e0088f0b9a256ea4b40b83b1
parentc1550e3f8c57b0ebb0edb3a7ea64727e668f669c
parent4943688e9d0d0f34f2fda188e9a9d2777f90d186
Auto merge of #88672 - camelid:inc-parser-sugg, r=davidtwco

Suggest `i += 1` when we see `i++` or `++i`

Closes #83502 (for `i++` and `++i`; `--i` should be covered by #82987, and `i--`
is tricky to handle).

This is a continuation of #83536.

r? `@estebank`
compiler/rustc_parse/src/parser/diagnostics.rs
compiler/rustc_parse/src/parser/expr.rs