We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419b269 commit d2b7bd4Copy full SHA for d2b7bd4
compiler/rustc_ast_pretty/src/pprust/state.rs
@@ -1159,8 +1159,11 @@ impl<'a> State<'a> {
1159
self.print_pat(pat);
1160
self.space();
1161
self.word_space("=");
1162
- let npals = || parser::needs_par_as_let_scrutinee(expr.precedence().order());
1163
- self.print_expr_cond_paren(expr, Self::cond_needs_par(expr) || npals())
+ self.print_expr_cond_paren(
+ expr,
1164
+ Self::cond_needs_par(expr)
1165
+ || parser::needs_par_as_let_scrutinee(expr.precedence().order()),
1166
+ );
1167
}
1168
1169
fn print_mac(&mut self, m: &ast::MacCall) {
0 commit comments