diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-26 15:21:15 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-27 08:15:12 +1000 |
| commit | 6b367a05320f2792414281075a4e98452b412a82 (patch) | |
| tree | 21cfd9119b61276cbdaf8f754f8e2bf7b451b2ec /src | |
| parent | f0bbc782ac11de6001eeec63e347427dbc639c04 (diff) | |
Avoid producing `NoDelim` values in `MacArgs::delim()`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rustfmt/src/expr.rs | 2 |
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) |
