diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-09-11 19:58:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-11 19:58:54 +0000 |
| commit | c057abd26879b5c398c2878d434ec621e009b9f0 (patch) | |
| tree | a84398858c0c8c2bf36dc92a102852605f9aaaf3 /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | 467efe0cf6f3275653faa54f601d87714b352adb (diff) | |
| parent | 4e286bb8fb305d6ba864ff8b2c806b4fd189657a (diff) | |
| download | rust-c057abd26879b5c398c2878d434ec621e009b9f0.tar.gz rust-c057abd26879b5c398c2878d434ec621e009b9f0.zip | |
Add suggestion to `cast_sign_loss` and `cast_possible_wrap` using the `cast_{un,}signed()` methods (#15384)
changelog: [`cast_sign_loss`, `cast_possible_wrap`]: add suggestion
using `cast_{un,}signed()` methods
Fixes rust-lang/rust-clippy#14150
This PR adds a suggestion to `cast_sign_loss` and `cast_possible_wrap`,
which fixes reported warnings using the `cast_{un,}signed()` methods, as
proposed in rust-lang/rust-clippy#14150. Suggestions are only made if
MSRV is >=1.87.
Also, I'm not 100% sure about the suggestion message yet. I'm open for
suggestions.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
