diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2022-10-31 18:30:09 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2022-11-11 16:31:32 +0000 |
| commit | 660e53512f1c25f03f6cf34fb620a7c0ed11d120 (patch) | |
| tree | c27b1a1eaa75d75b4ab60b9aeba2595608420846 | |
| parent | 5fee21fdd6836ef00e5c5963fe2abafd4ee4f295 (diff) | |
| download | rust-660e53512f1c25f03f6cf34fb620a7c0ed11d120.tar.gz rust-660e53512f1c25f03f6cf34fb620a7c0ed11d120.zip | |
Introduce `ExprKind::IncludedBytes`
| -rw-r--r-- | src/expr.rs | 1 | ||||
| -rw-r--r-- | src/utils.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/expr.rs b/src/expr.rs index 3105882e2d3..7750df0fff3 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -399,6 +399,7 @@ pub(crate) fn format_expr( } } ast::ExprKind::Underscore => Some("_".to_owned()), + ast::ExprKind::IncludedBytes(..) => unreachable!(), ast::ExprKind::Err => None, }; diff --git a/src/utils.rs b/src/utils.rs index cd852855602..c47b3b314dd 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -496,6 +496,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr | ast::ExprKind::Continue(..) | ast::ExprKind::Err | ast::ExprKind::Field(..) + | ast::ExprKind::IncludedBytes(..) | ast::ExprKind::InlineAsm(..) | ast::ExprKind::Let(..) | ast::ExprKind::Path(..) |
