Skip to content

Commit 51f4a24

Browse files
committed
Fix the overly long inner spans of inline mods
1 parent 6db1a0e commit 51f4a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4843,7 +4843,7 @@ impl<'a> Parser<'a> {
48434843
let hi = if self.span == codemap::DUMMY_SP {
48444844
inner_lo
48454845
} else {
4846-
self.span.lo
4846+
self.last_span.hi
48474847
};
48484848

48494849
Ok(ast::Mod {

0 commit comments

Comments
 (0)