diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-12 12:24:31 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-12 12:24:31 +0100 |
| commit | f590fa92140b5cc375bd4bc16ca6e930c5bf9e33 (patch) | |
| tree | 47d0fb5e03dc56be5e33f9b84f668b540b990e31 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | cc797a2b741be734289ba857e99dc72be908d92d (diff) | |
| parent | a4ef751e26a90dd3b6b35fdbfef1e4854f9d80e1 (diff) | |
| download | rust-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.rs | 2 |
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() { |
