Handle methodcalls & operators in patterns
This commit is contained in:
@@ -2415,6 +2415,18 @@ pub(crate) struct ExpectedCommaAfterPatternField {
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_unexpected_expr_in_pat)]
|
||||
pub(crate) struct UnexpectedExpressionInPattern {
|
||||
#[primary_span]
|
||||
#[label]
|
||||
pub span: Span,
|
||||
/// Was a `RangePatternBound` expected?
|
||||
pub is_bound: bool,
|
||||
/// Was the unexpected expression a `MethodCallExpression`?
|
||||
pub is_method_call: bool,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_unexpected_paren_in_range_pat)]
|
||||
pub(crate) struct UnexpectedParenInRangePat {
|
||||
|
||||
Reference in New Issue
Block a user