@@ -11,14 +11,14 @@ use crate::errors::{
11
11
ComparisonInterpretedAsGeneric , ComparisonOrShiftInterpretedAsGenericSugg ,
12
12
DoCatchSyntaxRemoved , DotDotDot , EqFieldInit , ExpectedElseBlock , ExpectedEqForLetExpr ,
13
13
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 ,
22
22
NotAsNegationOperatorSub , OuterAttributeNotAllowedOnIfElse , ParenthesesWithStructFields ,
23
23
RequireColonAfterLabeledExpression , ShiftInterpretedAsGeneric , StructLiteralNotAllowedHere ,
24
24
StructLiteralNotAllowedHereSugg , TildeAsUnaryOperator , UnexpectedIfWithIf ,
@@ -39,8 +39,8 @@ use rustc_ast::{Arm, Async, BlockCheckMode, Expr, ExprKind, Label, Movability, R
39
39
use rustc_ast:: { ClosureBinder , MetaItemLit , StmtKind } ;
40
40
use rustc_ast_pretty:: pprust;
41
41
use rustc_errors:: {
42
- AddToDiagnostic , Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed ,
43
- HelpUseLatestEdition , IntoDiagnostic , PResult , StashKey ,
42
+ AddToDiagnostic , Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed , IntoDiagnostic ,
43
+ PResult , StashKey ,
44
44
} ;
45
45
use rustc_session:: errors:: { report_lit_error, ExprParenthesesNeeded } ;
46
46
use rustc_session:: lint:: builtin:: BREAK_WITH_LABEL_AND_LOOP ;
0 commit comments