diff options
| author | bors <bors@rust-lang.org> | 2024-02-18 05:06:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-18 05:06:28 +0000 |
| commit | 90fccaad801a929fc482dbbeca0231aa197de7c7 (patch) | |
| tree | 2425c84d0a9356e90dde5de808e5e5456df8e8be /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 55f29d22b48c02f185fcfcfb34a1e3c78121cb7c (diff) | |
| parent | 7a83e2f30d92748640461edbd5812e7b9229e995 (diff) | |
| download | rust-90fccaad801a929fc482dbbeca0231aa197de7c7.tar.gz rust-90fccaad801a929fc482dbbeca0231aa197de7c7.zip | |
Auto merge of #3305 - rust-lang:rustup-2024-02-18, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 2424b6c130d..20b9581f2ef 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1433,7 +1433,7 @@ impl<'a> Parser<'a> { // If the input is something like `if a { 1 } else { 2 } | if a { 3 } else { 4 }` // then suggest parens around the lhs. if let Some(sp) = this.sess.ambiguous_block_expr_parse.borrow().get(&lo) { - err.subdiagnostic(ExprParenthesesNeeded::surrounding(*sp)); + err.subdiagnostic(this.dcx(), ExprParenthesesNeeded::surrounding(*sp)); } err }) |
