Skip to content

Commit e2b6930

Browse files
authored
Merge branch 'rust-lang:main' into main
2 parents 2710c3a + 2a3a62d commit e2b6930

File tree

135 files changed

+1851
-1208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1851
-1208
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4521,7 +4521,9 @@ struct BreakFinder {
45214521
impl<'hir> Visitor<'hir> for BreakFinder {
45224522
fn visit_expr(&mut self, ex: &'hir hir::Expr<'hir>) {
45234523
match ex.kind {
4524-
hir::ExprKind::Break(destination, _) => {
4524+
hir::ExprKind::Break(destination, _)
4525+
if !ex.span.is_desugaring(DesugaringKind::ForLoop) =>
4526+
{
45254527
self.found_breaks.push((destination, ex.span));
45264528
}
45274529
hir::ExprKind::Continue(destination) => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### this error code is no longer emitted by the compiler.
1+
#### Note: this error code is no longer emitted by the compiler.
22

33
This was triggered when multiple macro definitions used the same
44
`#[rustc_builtin_macro(..)]`. This is no longer an error.

0 commit comments

Comments
 (0)