diff options
| author | bors <bors@rust-lang.org> | 2024-05-21 21:36:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-21 21:36:09 +0000 |
| commit | 791adf759cc065316f054961875052d5bc03e16c (patch) | |
| tree | 17144e778b88c1cc27d2d9b605278b6fe1c9473c /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 39e02f1bd1e53d009da382654139f7c0639172a8 (diff) | |
| parent | 98dd6c7e8f33966221216200182175672294a719 (diff) | |
| download | rust-791adf759cc065316f054961875052d5bc03e16c.tar.gz rust-791adf759cc065316f054961875052d5bc03e16c.zip | |
Auto merge of #124417 - Xiretza:translate-early-lints, r=fmease
Make early lints translatable <del>Requires https://github.com/projectfluent/fluent-rs/pull/353.</del> https://github.com/rust-lang/rust/commit/5134a04eaa32b168cf5998a6ec13199356e2e017 r? diagnostics
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index d2d21624150..fd3f63a04de 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1913,11 +1913,10 @@ impl<'a> Parser<'a> { | ExprKind::Block(_, None) ) { - self.psess.buffer_lint_with_diagnostic( + self.psess.buffer_lint( BREAK_WITH_LABEL_AND_LOOP, lo.to(expr.span), ast::CRATE_NODE_ID, - "this labeled break expression is easy to confuse with an unlabeled break with a labeled value expression", BuiltinLintDiag::BreakWithLabelAndLoop(expr.span), ); } |
