Rename BinOpKind::lazy
as BinOpKind::is_lazy
.
To match `BinOpKind::is_comparison` and `hir::BinOpKind::is_lazy`.
This commit is contained in:
parent
0efd2a9d8f
commit
705b484922
3 changed files with 5 additions and 4 deletions
|
@ -656,7 +656,7 @@ trait UnusedDelimLint {
|
|||
) -> bool {
|
||||
if followed_by_else {
|
||||
match inner.kind {
|
||||
ast::ExprKind::Binary(op, ..) if op.node.lazy() => return true,
|
||||
ast::ExprKind::Binary(op, ..) if op.node.is_lazy() => return true,
|
||||
_ if classify::expr_trailing_brace(inner).is_some() => return true,
|
||||
_ => {}
|
||||
}
|
||||
|
@ -1016,7 +1016,7 @@ impl UnusedDelimLint for UnusedParens {
|
|||
rustc_span::source_map::Spanned { node, .. },
|
||||
_,
|
||||
_,
|
||||
) if node.lazy()))
|
||||
) if node.is_lazy()))
|
||||
{
|
||||
self.emit_unused_delims_expr(cx, value, ctx, left_pos, right_pos, is_kw)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue