@@ -85,13 +85,13 @@ use crate::db::{DefDatabase, HirDatabase};
8585pub use crate :: {
8686 attrs:: { HasAttrs , Namespace } ,
8787 diagnostics:: {
88- AnyDiagnostic , ExpectedFunction , InactiveCode , IncoherentImpl , IncorrectCase ,
89- InvalidDeriveTarget , MacroError , MalformedDerive , MismatchedArgCount , MissingFields ,
90- MissingMatchArms , MissingUnsafe , NeedMut , NoSuchField , PrivateAssocItem , PrivateField ,
91- ReplaceFilterMapNextWithFindMap , TypeMismatch , UndeclaredLabel , UnimplementedBuiltinMacro ,
92- UnreachableLabel , UnresolvedExternCrate , UnresolvedField , UnresolvedImport ,
93- UnresolvedMacroCall , UnresolvedMethodCall , UnresolvedModule , UnresolvedProcMacro ,
94- UnusedMut ,
88+ AnyDiagnostic , BreakOutsideOfLoop , ExpectedFunction , InactiveCode , IncoherentImpl ,
89+ IncorrectCase , InvalidDeriveTarget , MacroError , MalformedDerive , MismatchedArgCount ,
90+ MissingFields , MissingMatchArms , MissingUnsafe , NeedMut , NoSuchField , PrivateAssocItem ,
91+ PrivateField , ReplaceFilterMapNextWithFindMap , TypeMismatch , UndeclaredLabel ,
92+ UnimplementedBuiltinMacro , UnreachableLabel , UnresolvedExternCrate , UnresolvedField ,
93+ UnresolvedImport , UnresolvedMacroCall , UnresolvedMethodCall , UnresolvedModule ,
94+ UnresolvedProcMacro , UnusedMut ,
9595 } ,
9696 has_source:: HasSource ,
9797 semantics:: { PathResolution , Semantics , SemanticsScope , TypeInfo , VisibleTraits } ,
@@ -1483,6 +1483,14 @@ impl DefWithBody {
14831483 . into ( ) ,
14841484 )
14851485 }
1486+ & hir_ty:: InferenceDiagnostic :: BreakOutsideOfLoop {
1487+ expr,
1488+ is_break,
1489+ bad_value_break,
1490+ } => {
1491+ let expr = expr_syntax ( expr) ;
1492+ acc. push ( BreakOutsideOfLoop { expr, is_break, bad_value_break } . into ( ) )
1493+ }
14861494 }
14871495 }
14881496 for ( pat_or_expr, mismatch) in infer. type_mismatches ( ) {
0 commit comments