about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/from_u.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-12 22:15:55 +0000
committerbors <bors@rust-lang.org>2024-01-12 22:15:55 +0000
commit3071aefdb2821439e2e6f592f41a4d28e40c1e79 (patch)
tree7bf80bc244cd2c185a4aadc147ea31add7c949d2 /tests/rustdoc-js-std/from_u.js
parent2319be8e265dd19973574eb581d28297baf44b11 (diff)
parenteef4e653f2925e4923059f4571c8433a40f2e4a0 (diff)
downloadrust-3071aefdb2821439e2e6f592f41a4d28e40c1e79.tar.gz
rust-3071aefdb2821439e2e6f592f41a4d28e40c1e79.zip
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.
Diffstat (limited to 'tests/rustdoc-js-std/from_u.js')
0 files changed, 0 insertions, 0 deletions