diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-10 23:26:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-10 23:26:45 -0700 |
| commit | 8355024ed0cda6b041bc0adb2ca17193946b6c8e (patch) | |
| tree | 5f066841a85874260f7958b5de78772a58e1203d /src/librustc_parse/parser/expr.rs | |
| parent | eb1754efec623c7d712104421a58ef61f6e54fe4 (diff) | |
| parent | 3c63fba03daedf014b75e12f32f4daec3598f9a3 (diff) | |
| download | rust-8355024ed0cda6b041bc0adb2ca17193946b6c8e.tar.gz rust-8355024ed0cda6b041bc0adb2ca17193946b6c8e.zip | |
Rollup merge of #74125 - ayazhafiz:i/74050, r=matthewjasper
Correctly mark the ending span of a match arm Closes #74050 r? @matthewjasper
Diffstat (limited to 'src/librustc_parse/parser/expr.rs')
| -rw-r--r-- | src/librustc_parse/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs index d52cea74520..3926122606e 100644 --- a/src/librustc_parse/parser/expr.rs +++ b/src/librustc_parse/parser/expr.rs @@ -1833,7 +1833,7 @@ impl<'a> Parser<'a> { let require_comma = classify::expr_requires_semi_to_be_stmt(&expr) && self.token != token::CloseDelim(token::Brace); - let hi = self.token.span; + let hi = self.prev_token.span; if require_comma { let sm = self.sess.source_map(); |
