diff options
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index 0be4c3cf168..3f0f217f890 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -400,7 +400,10 @@ pub(crate) fn format_expr( } } ast::ExprKind::Underscore => Some("_".to_owned()), - ast::ExprKind::IncludedBytes(..) => unreachable!(), + ast::ExprKind::FormatArgs(..) | ast::ExprKind::IncludedBytes(..) => { + // These do not occur in the AST because macros aren't expanded. + unreachable!() + } ast::ExprKind::Err => None, }; |
