diff options
| author | bors <bors@rust-lang.org> | 2022-05-24 20:47:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-24 20:47:34 +0000 |
| commit | c41c410a90cd97d3e82b67375f76c161f8c280dd (patch) | |
| tree | 1ce698c2f90e723c8dbe45c59a9994a95c9d7412 /src/test/codegen/src-hash-algorithm | |
| parent | 6269ab1eec7a84a66cf61d6231d6db1def1f1947 (diff) | |
| parent | ee8fae3f5d4aac2bcbea8936e39d3027aade8e32 (diff) | |
| download | rust-c41c410a90cd97d3e82b67375f76c161f8c280dd.tar.gz rust-c41c410a90cd97d3e82b67375f76c161f8c280dd.zip | |
Auto merge of #8786 - Alexendoo:identity-op-suggestions, r=dswij,xFrednet
`identity_op`: add parenthesis to suggestions where required
changelog: [`identity_op`]: add parenthesis to suggestions where required
Follow up to #8730, wraps the cases we can't lint as-is in parenthesis rather than ignoring them
Catches a couple new FPs with mixed operator precedences and `as` casts
```rust
// such as
0 + { a } * 2;
0 + a as usize;
```
The suggestions are now applied using `span_lint_and_sugg` rather than appearing in just the message and have a `run-rustfix` test
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
