lint of unnecessary parentheses around if
condition may case error
#63156
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
when unnecessary parentheses is removed, may lack a whitespace between
if
andexpr
.example
if(is_prime) {println!("hello")};
while be replaced to
ifis_prime {println!("hello")};
Maybe we should replare
(expr)
with a pair of whitespace aroundexpr
, instead of justexpr
;The text was updated successfully, but these errors were encountered: