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
|
@ -384,7 +384,7 @@ impl<'a> Parser<'a> {
|
|||
|
||||
fn check_let_else_init_bool_expr(&self, init: &ast::Expr) {
|
||||
if let ast::ExprKind::Binary(op, ..) = init.kind {
|
||||
if op.node.lazy() {
|
||||
if op.node.is_lazy() {
|
||||
self.sess.emit_err(errors::InvalidExpressionInLetElse {
|
||||
span: init.span,
|
||||
operator: op.node.as_str(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue