mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Apply the same overflowing rule to tuple as function call
This commit is contained in:
+2
-2
@@ -2309,8 +2309,8 @@ pub fn can_be_overflowed_expr(context: &RewriteContext, expr: &ast::Expr, args_l
|
||||
ast::ExprKind::Call(..) |
|
||||
ast::ExprKind::MethodCall(..) |
|
||||
ast::ExprKind::Mac(..) |
|
||||
ast::ExprKind::Struct(..) => context.use_block_indent() && args_len == 1,
|
||||
ast::ExprKind::Tup(..) => context.use_block_indent(),
|
||||
ast::ExprKind::Struct(..) |
|
||||
ast::ExprKind::Tup(..) => context.use_block_indent() && args_len == 1,
|
||||
ast::ExprKind::AddrOf(_, ref expr) |
|
||||
ast::ExprKind::Box(ref expr) |
|
||||
ast::ExprKind::Try(ref expr) |
|
||||
|
||||
Reference in New Issue
Block a user