about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-04-26 15:21:15 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-04-27 08:15:12 +1000
commit6b367a05320f2792414281075a4e98452b412a82 (patch)
tree21cfd9119b61276cbdaf8f754f8e2bf7b451b2ec /src
parentf0bbc782ac11de6001eeec63e347427dbc639c04 (diff)
Avoid producing `NoDelim` values in `MacArgs::delim()`.
Diffstat (limited to 'src')
-rw-r--r--src/tools/rustfmt/src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/expr.rs b/src/tools/rustfmt/src/expr.rs
index 4f333cd27ce..cd724373f4d 100644
--- a/src/tools/rustfmt/src/expr.rs
+++ b/src/tools/rustfmt/src/expr.rs
@@ -1325,7 +1325,7 @@ pub(crate) fn can_be_overflowed_expr(
         }
         ast::ExprKind::MacCall(ref mac) => {
             match (
-                rustc_ast::ast::MacDelimiter::from_token(mac.args.delim()),
+                rustc_ast::ast::MacDelimiter::from_token(mac.args.delim().unwrap()),
                 context.config.overflow_delimited_expr(),
             ) {
                 (Some(ast::MacDelimiter::Bracket), true)