Skip to content

Commit d4fb6ec

Browse files
committed
Remove LLVM-style inline assembly from rustfmt
1 parent d60edea commit d4fb6ec

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: src/tools/rustfmt/src/expr.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ pub(crate) fn format_expr(
334334
// satisfy our width restrictions.
335335
// Style Guide RFC for InlineAsm variant pending
336336
// https://github.com/rust-dev-tools/fmt-rfcs/issues/152
337-
ast::ExprKind::LlvmInlineAsm(..) | ast::ExprKind::InlineAsm(..) => {
338-
Some(context.snippet(expr.span).to_owned())
339-
}
337+
ast::ExprKind::InlineAsm(..) => Some(context.snippet(expr.span).to_owned()),
340338
ast::ExprKind::TryBlock(ref block) => {
341339
if let rw @ Some(_) =
342340
rewrite_single_line_block(context, "try ", block, Some(&expr.attrs), None, shape)

Diff for: src/tools/rustfmt/src/utils.rs

-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr
507507
| ast::ExprKind::Err
508508
| ast::ExprKind::Field(..)
509509
| ast::ExprKind::InlineAsm(..)
510-
| ast::ExprKind::LlvmInlineAsm(..)
511510
| ast::ExprKind::Let(..)
512511
| ast::ExprKind::Path(..)
513512
| ast::ExprKind::Range(..)

0 commit comments

Comments
 (0)