@@ -11,15 +11,16 @@ use crate::errors::{
1111 ComparisonInterpretedAsGeneric , ComparisonOrShiftInterpretedAsGenericSugg ,
1212 DoCatchSyntaxRemoved , DotDotDot , EqFieldInit , ExpectedElseBlock , ExpectedEqForLetExpr ,
1313 ExpectedExpressionFoundLet , FieldExpressionWithGeneric , FloatLiteralRequiresIntegerPart ,
14- FoundExprWouldBeStmt , IfExpressionLetSomeSub , 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 ,
22- NotAsNegationOperatorSub , OuterAttributeNotAllowedOnIfElse , ParenthesesWithStructFields ,
14+ FoundExprWouldBeStmt , HelpUseLatestEdition , IfExpressionLetSomeSub ,
15+ IfExpressionMissingCondition , IfExpressionMissingThenBlock , IfExpressionMissingThenBlockSub ,
16+ InvalidBlockMacroSegment , InvalidComparisonOperator , InvalidComparisonOperatorSub ,
17+ InvalidInterpolatedExpression , InvalidLiteralSuffixOnTupleIndex , InvalidLogicalOperator ,
18+ InvalidLogicalOperatorSub , LabeledLoopInBreak , LeadingPlusNotSupported , LeftArrowOperator ,
19+ LifetimeInBorrowExpression , MacroInvocationWithQualifiedPath , MalformedLoopLabel ,
20+ MatchArmBodyWithoutBraces , MatchArmBodyWithoutBracesSugg , MissingCommaAfterMatchArm ,
21+ MissingDotDot , MissingInInForLoop , MissingInInForLoopSub , MissingSemicolonBeforeArray ,
22+ NoFieldsForFnCall , NotAsNegationOperator , NotAsNegationOperatorSub ,
23+ OuterAttributeNotAllowedOnIfElse , ParenthesesWithStructFields ,
2324 RequireColonAfterLabeledExpression , ShiftInterpretedAsGeneric , StructLiteralNotAllowedHere ,
2425 StructLiteralNotAllowedHereSugg , TildeAsUnaryOperator , UnexpectedIfWithIf ,
2526 UnexpectedTokenAfterLabel , UnexpectedTokenAfterLabelSugg , WrapExpressionInParentheses ,
@@ -39,8 +40,8 @@ use rustc_ast::{Arm, Async, BlockCheckMode, Expr, ExprKind, Label, Movability, R
3940use rustc_ast:: { ClosureBinder , MetaItemLit , StmtKind } ;
4041use rustc_ast_pretty:: pprust;
4142use rustc_errors:: {
42- AddToDiagnostic , Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed ,
43- HelpUseLatestEdition , IntoDiagnostic , PResult , StashKey ,
43+ AddToDiagnostic , Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed , IntoDiagnostic ,
44+ PResult , StashKey ,
4445} ;
4546use rustc_session:: errors:: { report_lit_error, ExprParenthesesNeeded } ;
4647use rustc_session:: lint:: builtin:: BREAK_WITH_LABEL_AND_LOOP ;
0 commit comments