fix(rustc_lint): mark the parens around (1..loop {})
as unused
This commit is contained in:
parent
6b7fcf720a
commit
f4a0321c03
3 changed files with 41 additions and 1 deletions
|
@ -479,7 +479,7 @@ trait UnusedDelimLint {
|
|||
&& match &inner.kind {
|
||||
ExprKind::Ret(_) | ExprKind::Break(..) | ExprKind::Yield(..) => true,
|
||||
ExprKind::Range(_lhs, Some(rhs), _limits) => {
|
||||
!classify::expr_requires_semi_to_be_stmt(&rhs)
|
||||
matches!(rhs.kind, ExprKind::Block(..))
|
||||
}
|
||||
_ => parser::contains_exterior_struct_lit(&inner),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue