We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d57fa21 commit 6cc9895Copy full SHA for 6cc9895
compiler/rustc_ast_lowering/src/format.rs
@@ -522,8 +522,6 @@ fn expand_format_args<'hir>(
522
// Don't care about non-arguments.
523
.filter(|(&(arg, _), _)| arg != usize::MAX)
524
.enumerate()
525
- // Don't care about captured arguments, as their expression has no side effects.
526
- .filter(|(_, (&(arg, _), _))| !arguments[arg].kind.is_captured())
527
// Check that the argument indexes are used one by one in order.
528
.all(|(i, (&(arg, _), _))| i == arg)
529
// And check that none except possibly the first argument have a yield point.
0 commit comments