@@ -11,14 +11,14 @@ use crate::errors::{
1111 ComparisonInterpretedAsGeneric , ComparisonOrShiftInterpretedAsGenericSugg ,
1212 DoCatchSyntaxRemoved , DotDotDot , EqFieldInit , ExpectedElseBlock , ExpectedEqForLetExpr ,
1313 ExpectedExpressionFoundLet , FieldExpressionWithGeneric , FloatLiteralRequiresIntegerPart ,
14- FoundExprWouldBeStmt , IfExpressionMissingCondition , IfExpressionMissingThenBlock ,
15- IfExpressionMissingThenBlockSub , InvalidBlockMacroSegment , InvalidComparisonOperator ,
16- InvalidComparisonOperatorSub , InvalidInterpolatedExpression , InvalidLiteralSuffixOnTupleIndex ,
17- InvalidLogicalOperator , InvalidLogicalOperatorSub , LabeledLoopInBreak , LeadingPlusNotSupported ,
18- LeftArrowOperator , LifetimeInBorrowExpression , MacroInvocationWithQualifiedPath ,
19- MalformedLoopLabel , MatchArmBodyWithoutBraces , MatchArmBodyWithoutBracesSugg ,
20- MissingCommaAfterMatchArm , MissingDotDot , MissingInInForLoop , MissingInInForLoopSub ,
21- MissingSemicolonBeforeArray , NoFieldsForFnCall , NotAsNegationOperator ,
14+ FoundExprWouldBeStmt , HelpUseLatestEdition , IfExpressionMissingCondition ,
15+ IfExpressionMissingThenBlock , IfExpressionMissingThenBlockSub , InvalidBlockMacroSegment ,
16+ InvalidComparisonOperator , InvalidComparisonOperatorSub , InvalidInterpolatedExpression ,
17+ InvalidLiteralSuffixOnTupleIndex , InvalidLogicalOperator , InvalidLogicalOperatorSub ,
18+ LabeledLoopInBreak , LeadingPlusNotSupported , LeftArrowOperator , LifetimeInBorrowExpression ,
19+ MacroInvocationWithQualifiedPath , MalformedLoopLabel , MatchArmBodyWithoutBraces ,
20+ MatchArmBodyWithoutBracesSugg , MissingCommaAfterMatchArm , MissingDotDot , MissingInInForLoop ,
21+ MissingInInForLoopSub , MissingSemicolonBeforeArray , NoFieldsForFnCall , NotAsNegationOperator ,
2222 NotAsNegationOperatorSub , OuterAttributeNotAllowedOnIfElse , ParenthesesWithStructFields ,
2323 RequireColonAfterLabeledExpression , ShiftInterpretedAsGeneric , StructLiteralNotAllowedHere ,
2424 StructLiteralNotAllowedHereSugg , TildeAsUnaryOperator , UnexpectedIfWithIf ,
@@ -39,8 +39,8 @@ use rustc_ast::{Arm, Async, BlockCheckMode, Expr, ExprKind, Label, Movability, R
3939use rustc_ast:: { ClosureBinder , MetaItemLit , StmtKind } ;
4040use rustc_ast_pretty:: pprust;
4141use rustc_errors:: {
42- AddToDiagnostic , Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed ,
43- HelpUseLatestEdition , IntoDiagnostic , PResult , StashKey ,
42+ AddToDiagnostic , Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed , IntoDiagnostic ,
43+ PResult , StashKey ,
4444} ;
4545use rustc_session:: errors:: { report_lit_error, ExprParenthesesNeeded } ;
4646use rustc_session:: lint:: builtin:: BREAK_WITH_LABEL_AND_LOOP ;
0 commit comments