about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-12-12 12:24:31 +0100
committerRalf Jung <post@ralfj.de>2024-12-12 12:24:31 +0100
commitf590fa92140b5cc375bd4bc16ca6e930c5bf9e33 (patch)
tree47d0fb5e03dc56be5e33f9b84f668b540b990e31 /compiler/rustc_parse/src/parser/expr.rs
parentcc797a2b741be734289ba857e99dc72be908d92d (diff)
parenta4ef751e26a90dd3b6b35fdbfef1e4854f9d80e1 (diff)
downloadrust-f590fa92140b5cc375bd4bc16ca6e930c5bf9e33.tar.gz
rust-f590fa92140b5cc375bd4bc16ca6e930c5bf9e33.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 3a9e9b480ec..eeb83a85e59 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -3533,7 +3533,7 @@ impl<'a> Parser<'a> {
                 let exp_span = self.prev_token.span;
                 // We permit `.. }` on the left-hand side of a destructuring assignment.
                 if self.check(&token::CloseDelim(close_delim)) {
-                    base = ast::StructRest::Rest(self.prev_token.span.shrink_to_hi());
+                    base = ast::StructRest::Rest(self.prev_token.span);
                     break;
                 }
                 match self.parse_expr() {