diff options
| author | bors <bors@rust-lang.org> | 2023-07-13 12:28:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-13 12:28:52 +0000 |
| commit | a0e825786b09163b08db0edeb501f19b911dcdf1 (patch) | |
| tree | 1e1da2b914e80f125614f8dc1e1ce311b371534f /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 631faa1bc7601b31f6256693558eea967515a5cf (diff) | |
| parent | c5fc61ca9485d8ccf1e0865ed675edfacddd5d57 (diff) | |
| download | rust-a0e825786b09163b08db0edeb501f19b911dcdf1.tar.gz rust-a0e825786b09163b08db0edeb501f19b911dcdf1.zip | |
Auto merge of #11147 - y21:issue11145, r=Alexendoo
[`arithmetic_side_effect`]: allow different types on the right hand side for `Wrapping<T>` Fixes #11145 This lint has a list of allowed types, one of which is `Wrapping<T>`, but it was only actually allowed if the type on the right hand side was also `Wrapping<T>`, which meant that, for example, `Wrapping<u32> += u32` would still lint. It now allows binary ops involving `Wrapping<T>` regardless of the type on the rhs. These impls have only existed since Rust 1.60.0, so that is probably why the lint was previously not handling this correctly changelog: [`arithmetic_side_effect`]: allow different types on the right hand side for `Wrapping<T>` (e.g. `Wrapping<T> += T`)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
