Skip to content

Commit e08df2d

Browse files
committed
Avoid producing NoDelim values in MacArgs::delim().
1 parent 10954cf commit e08df2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ pub(crate) fn can_be_overflowed_expr(
13251325
}
13261326
ast::ExprKind::MacCall(ref mac) => {
13271327
match (
1328-
rustc_ast::ast::MacDelimiter::from_token(mac.args.delim()),
1328+
rustc_ast::ast::MacDelimiter::from_token(mac.args.delim().unwrap()),
13291329
context.config.overflow_delimited_expr(),
13301330
) {
13311331
(Some(ast::MacDelimiter::Bracket), true)

0 commit comments

Comments
 (0)