Skip to content

Commit

Permalink
Sort the Expr variants in impl_by_parsing_expr call
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 5, 2022
1 parent d94e7f1 commit 714f868
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2277,18 +2277,18 @@ pub(crate) mod parsing {
}

impl_by_parsing_expr! {
ExprCall, Call, "expected function call expression",
ExprMethodCall, MethodCall, "expected method call expression",
ExprTuple, Tuple, "expected tuple expression",
ExprBinary, Binary, "expected binary operation",
ExprCast, Cast, "expected cast expression",
ExprType, Type, "expected type ascription expression",
ExprAssign, Assign, "expected assignment expression",
ExprAssignOp, AssignOp, "expected compound assignment expression",
ExprBinary, Binary, "expected binary operation",
ExprCall, Call, "expected function call expression",
ExprCast, Cast, "expected cast expression",
ExprField, Field, "expected struct field access",
ExprIndex, Index, "expected indexing expression",
ExprMethodCall, MethodCall, "expected method call expression",
ExprRange, Range, "expected range expression",
ExprTry, Try, "expected try expression",
ExprTuple, Tuple, "expected tuple expression",
ExprType, Type, "expected type ascription expression",
}

#[cfg(feature = "full")]
Expand Down

0 comments on commit 714f868

Please sign in to comment.