rust/compiler/rustc_lint
bors 3071aefdb2 Auto merge of #117321 - chenyukang:yukang-fix-117142, r=petrochenkov
Fix unused_parens issue when cast is followed LT

Fixes #117142

The original check only checks `a as (i32) < 0`, this fix extends it to handle `b + a as (i32) < 0`.

A better way is maybe we suggest `(a as i32) < 0` instead of suppressing the warning, maybe following PR could improve it.
2024-01-12 22:15:55 +00:00
..
src Auto merge of #117321 - chenyukang:yukang-fix-117142, r=petrochenkov 2024-01-12 22:15:55 +00:00
Cargo.toml Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
messages.ftl check rust lints when an unknown lint is detected 2024-01-12 18:50:36 +08:00