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