Fix end of TtDelimited span

This commit is contained in:
Keegan McAllister
2015-01-31 14:54:43 -08:00
parent 474b324eda
commit cedc6753f2
2 changed files with 24 additions and 1 deletions

View File

@@ -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,