mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Auto merge of #28534 - marcusklaas:fix-mod-inner-span, r=alexcrichton
Fixes https://github.com/rust-lang/rust/issues/28520. r? @alexcrichton or @nrc?
This commit is contained in:
@@ -4843,7 +4843,7 @@ fn parse_mod_items(&mut self, term: &token::Token, inner_lo: BytePos) -> PResult
|
||||
let hi = if self.span == codemap::DUMMY_SP {
|
||||
inner_lo
|
||||
} else {
|
||||
self.span.lo
|
||||
self.last_span.hi
|
||||
};
|
||||
|
||||
Ok(ast::Mod {
|
||||
|
||||
Reference in New Issue
Block a user