diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-01-12 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-01-12 21:43:35 +0100 |
| commit | 04670a14046b96a17bee2c2b36c3c2002ce3b0b6 (patch) | |
| tree | e27e16e6c0880e2864174390c6b222f8549aeb20 | |
| parent | 6e6300207f835c0a6c4dd0b6a4e55ab07d3d272b (diff) | |
| download | rust-04670a14046b96a17bee2c2b36c3c2002ce3b0b6.tar.gz rust-04670a14046b96a17bee2c2b36c3c2002ce3b0b6.zip | |
Remove LLVM-style inline assembly from rustfmt
| -rw-r--r-- | src/expr.rs | 4 | ||||
| -rw-r--r-- | src/utils.rs | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/expr.rs b/src/expr.rs index c9c8852cd3b..e1865c8afc2 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -334,9 +334,7 @@ pub(crate) fn format_expr( // satisfy our width restrictions. // Style Guide RFC for InlineAsm variant pending // https://github.com/rust-dev-tools/fmt-rfcs/issues/152 - ast::ExprKind::LlvmInlineAsm(..) | ast::ExprKind::InlineAsm(..) => { - Some(context.snippet(expr.span).to_owned()) - } + ast::ExprKind::InlineAsm(..) => Some(context.snippet(expr.span).to_owned()), ast::ExprKind::TryBlock(ref block) => { if let rw @ Some(_) = rewrite_single_line_block(context, "try ", block, Some(&expr.attrs), None, shape) diff --git a/src/utils.rs b/src/utils.rs index 0c0b789a6ef..2428d8cb0fd 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -507,7 +507,6 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr | ast::ExprKind::Err | ast::ExprKind::Field(..) | ast::ExprKind::InlineAsm(..) - | ast::ExprKind::LlvmInlineAsm(..) | ast::ExprKind::Let(..) | ast::ExprKind::Path(..) | ast::ExprKind::Range(..) |
