about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-02 10:58:19 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-02 10:58:19 -0800
commit075588a4939acb47feea79779a9bdacce702d9c5 (patch)
treeb73a5f0bbe1ac7c651b7ad28a8f9c6bcddc6853e /src/libsyntax/parse/parser.rs
parent10de0d9898a55e167f866cffaa0b6a48a8cd0a64 (diff)
parentcedc6753f2bb8aedf527245ba9874e85cf669ac2 (diff)
downloadrust-075588a4939acb47feea79779a9bdacce702d9c5.tar.gz
rust-075588a4939acb47feea79779a9bdacce702d9c5.zip
rollup merge of #21825: kmcallister/ttdelim-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 49df6a361c5..0ed85a014ef 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2742,7 +2742,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,