about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2015-01-31 14:54:43 -0800
committerKeegan McAllister <kmcallister@mozilla.com>2015-01-31 17:41:38 -0800
commitcedc6753f2bb8aedf527245ba9874e85cf669ac2 (patch)
tree5c725ff26d031729c4bc2d0b45799f379d79e106 /src/libsyntax/parse/parser.rs
parent474b324eda10440d6568ef872a7307d38e7de95b (diff)
downloadrust-cedc6753f2bb8aedf527245ba9874e85cf669ac2.tar.gz
rust-cedc6753f2bb8aedf527245ba9874e85cf669ac2.zip
Fix end of TtDelimited span
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index d99095eeba3..8e88f5a5679 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2735,7 +2735,7 @@ impl<'a> Parser<'a> {
                 self.open_braces.pop().unwrap();
 
                 // Expand to cover the entire delimited token tree
-                let span = Span { hi: self.span.hi, ..pre_span };
+                let span = Span { hi: close_span.hi, ..pre_span };
 
                 TtDelimited(span, Rc::new(Delimited {
                     delim: delim,