File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1083,9 +1083,9 @@ impl ExprCollector<'_> {
1083
1083
. collect ( ) ,
1084
1084
}
1085
1085
}
1086
- // FIXME: rustfmt removes this label if it is a block and not a loop
1087
- ast:: Pat :: LiteralPat ( lit) => ' b: loop {
1088
- break if let Some ( ast_lit) = lit. literal ( ) {
1086
+ # [ rustfmt :: skip ] // https://github.com/rust-lang/ rustfmt/issues/5676
1087
+ ast:: Pat :: LiteralPat ( lit) => ' b: {
1088
+ if let Some ( ast_lit) = lit. literal ( ) {
1089
1089
let mut hir_lit: Literal = ast_lit. kind ( ) . into ( ) ;
1090
1090
if lit. minus_token ( ) . is_some ( ) {
1091
1091
let Some ( h) = hir_lit. negate ( ) else {
@@ -1099,7 +1099,7 @@ impl ExprCollector<'_> {
1099
1099
Pat :: Lit ( expr_id)
1100
1100
} else {
1101
1101
Pat :: Missing
1102
- } ;
1102
+ }
1103
1103
} ,
1104
1104
ast:: Pat :: RestPat ( _) => {
1105
1105
// `RestPat` requires special handling and should not be mapped
You can’t perform that action at this time.
0 commit comments