about summary refs log tree commit diff
path: root/src/librustc_parse/parser/module.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-03-01 19:28:10 +0900
committerGitHub <noreply@github.com>2020-03-01 19:28:10 +0900
commit4439bb09aabee6df4f0ca48552b61ea9d7bc60db (patch)
treeb8e984955d096614ced60c35a9329bc8120148bb /src/librustc_parse/parser/module.rs
parent48ec25224b1e252608a0458585dc5e0847ed91c4 (diff)
parent7de9a72ca3769f55b415372f1f59f70ccf1f66fe (diff)
downloadrust-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.rs2
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 })
     }