about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2025-01-31 06:12:43 +0000
committerGitHub <noreply@github.com>2025-01-31 06:12:43 +0000
commitbcda8927d010915dd50991cda41d01ee16e545ee (patch)
tree2f5b7438dad8635d3d521bb0d04428eed0c4b2cd /compiler/rustc_parse/src/parser/expr.rs
parente1d050732198114a28cca6749375236cab5b21e8 (diff)
parent74ca1cfb2aec94ae9e6c277b20c2caa4588c9993 (diff)
downloadrust-bcda8927d010915dd50991cda41d01ee16e545ee.tar.gz
rust-bcda8927d010915dd50991cda41d01ee16e545ee.zip
Merge pull request #4166 from rust-lang/rustup-2025-01-31
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index a5b73ce4098..ffd46f20767 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -3114,9 +3114,8 @@ impl<'a> Parser<'a> {
             let span_before_body = this.prev_token.span;
             let arm_body;
             let is_fat_arrow = this.check(exp!(FatArrow));
-            let is_almost_fat_arrow = TokenKind::FatArrow
-                .similar_tokens()
-                .is_some_and(|similar_tokens| similar_tokens.contains(&this.token.kind));
+            let is_almost_fat_arrow =
+                TokenKind::FatArrow.similar_tokens().contains(&this.token.kind);
 
             // this avoids the compiler saying that a `,` or `}` was expected even though
             // the pattern isn't a never pattern (and thus an arm body is required)