Skip to content

Commit 202582c

Browse files
committed
add unreachable
1 parent 2158948 commit 202582c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/parser/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10419,7 +10419,9 @@ impl<'a> Parser<'a> {
1041910419
let exprs = self.parse_comma_separated(Parser::parse_order_by_expr)?;
1042010420
pipe_operators.push(PipeOperator::OrderBy { exprs })
1042110421
}
10422-
_ => {}
10422+
unhandled => {
10423+
unreachable!("`expect_one_of_keywords` further up allowed unhandled keyword: {unhandled:?}");
10424+
}
1042310425
}
1042410426
}
1042510427
Ok(pipe_operators)

0 commit comments

Comments
 (0)