Skip to content

Commit 3d2f549

Browse files
committed
Rollup merge of rust-lang#24248 - nrc:macro-span, r=sfackler
2 parents 8ad2d17 + cf41053 commit 3d2f549

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,13 +2162,13 @@ impl<'a> Parser<'a> {
21622162
&token::CloseDelim(delim),
21632163
seq_sep_none(),
21642164
|p| p.parse_token_tree()));
2165-
let hi = self.span.hi;
2165+
let hi = self.last_span.hi;
21662166

21672167
return Ok(self.mk_mac_expr(lo,
2168-
hi,
2169-
MacInvocTT(pth,
2170-
tts,
2171-
EMPTY_CTXT)));
2168+
hi,
2169+
MacInvocTT(pth,
2170+
tts,
2171+
EMPTY_CTXT)));
21722172
}
21732173
if self.check(&token::OpenDelim(token::Brace)) {
21742174
// This is a struct literal, unless we're prohibited
@@ -3449,7 +3449,7 @@ impl<'a> Parser<'a> {
34493449
seq_sep_none(),
34503450
|p| p.parse_token_tree()
34513451
));
3452-
let hi = self.span.hi;
3452+
let hi = self.last_span.hi;
34533453

34543454
let style = if delim == token::Brace {
34553455
MacStmtWithBraces

0 commit comments

Comments
 (0)