mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 19:33:16 +00: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:
commit
79d259e618
@ -4843,7 +4843,7 @@ impl<'a> Parser<'a> {
|
|||||||
let hi = if self.span == codemap::DUMMY_SP {
|
let hi = if self.span == codemap::DUMMY_SP {
|
||||||
inner_lo
|
inner_lo
|
||||||
} else {
|
} else {
|
||||||
self.span.lo
|
self.last_span.hi
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(ast::Mod {
|
Ok(ast::Mod {
|
||||||
|
Loading…
Reference in New Issue
Block a user