about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-11-03 14:22:35 -0700
committerEsteban Küber <esteban@kuber.com.ar>2022-11-23 12:17:47 -0800
commit24f80ea7d758361f0b296ad93b9613b13dbd2235 (patch)
tree6e755ab04a2aa0bab8318b217542d0f5e8aecd40
parente6e7a6db2807cf68a4147bbfaa6d5e0f8c2828d3 (diff)
downloadrust-24f80ea7d758361f0b296ad93b9613b13dbd2235.tar.gz
rust-24f80ea7d758361f0b296ad93b9613b13dbd2235.zip
Fix rustfmt
-rw-r--r--src/tools/rustfmt/src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/expr.rs b/src/tools/rustfmt/src/expr.rs
index d5611082f01..414e767690b 100644
--- a/src/tools/rustfmt/src/expr.rs
+++ b/src/tools/rustfmt/src/expr.rs
@@ -660,7 +660,7 @@ fn to_control_flow(expr: &ast::Expr, expr_type: ExprType) -> Option<ControlFlow<
         ast::ExprKind::ForLoop(ref pat, ref cond, ref block, label) => {
             Some(ControlFlow::new_for(pat, cond, block, label, expr.span))
         }
-        ast::ExprKind::Loop(ref block, label) => {
+        ast::ExprKind::Loop(ref block, label, _) => {
             Some(ControlFlow::new_loop(block, label, expr.span))
         }
         ast::ExprKind::While(ref cond, ref block, label) => {