diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-01 19:28:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-01 19:28:10 +0900 |
| commit | 4439bb09aabee6df4f0ca48552b61ea9d7bc60db (patch) | |
| tree | b8e984955d096614ced60c35a9329bc8120148bb /src/librustc_parse/parser/module.rs | |
| parent | 48ec25224b1e252608a0458585dc5e0847ed91c4 (diff) | |
| parent | 7de9a72ca3769f55b415372f1f59f70ccf1f66fe (diff) | |
| download | rust-4439bb09aabee6df4f0ca48552b61ea9d7bc60db.tar.gz rust-4439bb09aabee6df4f0ca48552b61ea9d7bc60db.zip | |
Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril
parser: Remove `Parser::prev_span` Follow-up to https://github.com/rust-lang/rust/pull/69384. r? @Centril
Diffstat (limited to 'src/librustc_parse/parser/module.rs')
| -rw-r--r-- | src/librustc_parse/parser/module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/module.rs b/src/librustc_parse/parser/module.rs index 4e9a9a5021b..b436f1969bb 100644 --- a/src/librustc_parse/parser/module.rs +++ b/src/librustc_parse/parser/module.rs @@ -90,7 +90,7 @@ impl<'a> Parser<'a> { } } - let hi = if self.token.span.is_dummy() { inner_lo } else { self.prev_span }; + let hi = if self.token.span.is_dummy() { inner_lo } else { self.prev_token.span }; Ok(Mod { inner: inner_lo.to(hi), items, inline: true }) } |
