about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-09-06 05:09:32 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-09-06 05:09:32 +0000
commit2fccb4b358e06c9c33d1ed18b280aa1a776c2f36 (patch)
treea327c16521758286ea353293be72e4104cba2442 /compiler/rustc_parse/src/parser
parent81a08bc67ab0d9186295d081e9579d8e0c2f1998 (diff)
parent54fdef7799d9ff9470bb5cabd29fde9471a99eaa (diff)
downloadrust-2fccb4b358e06c9c33d1ed18b280aa1a776c2f36.tar.gz
rust-2fccb4b358e06c9c33d1ed18b280aa1a776c2f36.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/pat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/pat.rs b/compiler/rustc_parse/src/parser/pat.rs
index 8233f9a7943..f87b5649654 100644
--- a/compiler/rustc_parse/src/parser/pat.rs
+++ b/compiler/rustc_parse/src/parser/pat.rs
@@ -402,7 +402,7 @@ impl<'a> Parser<'a> {
             let non_assoc_span = expr.span;
 
             // Parse an associative expression such as `+ expr`, `% expr`, ...
-            // Assignements, ranges and `|` are disabled by [`Restrictions::IS_PAT`].
+            // Assignments, ranges and `|` are disabled by [`Restrictions::IS_PAT`].
             if let Ok((expr, _)) =
                 snapshot.parse_expr_assoc_rest_with(0, false, expr).map_err(|err| err.cancel())
             {