From 51f4a241bf0d99d7f1a9ae8cd3a936d56b8b7bd4 Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Sun, 20 Sep 2015 14:06:58 +0200 Subject: [PATCH] Fix the overly long inner spans of inline mods --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 7f57170c2ef..b525f556e34 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4843,7 +4843,7 @@ impl<'a> Parser<'a> { let hi = if self.span == codemap::DUMMY_SP { inner_lo } else { - self.span.lo + self.last_span.hi }; Ok(ast::Mod {