We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ad2d17 + cf41053 commit 3d2f549Copy full SHA for 3d2f549
src/libsyntax/parse/parser.rs
@@ -2162,13 +2162,13 @@ impl<'a> Parser<'a> {
2162
&token::CloseDelim(delim),
2163
seq_sep_none(),
2164
|p| p.parse_token_tree()));
2165
- let hi = self.span.hi;
+ let hi = self.last_span.hi;
2166
2167
return Ok(self.mk_mac_expr(lo,
2168
- hi,
2169
- MacInvocTT(pth,
2170
- tts,
2171
- EMPTY_CTXT)));
+ hi,
+ MacInvocTT(pth,
+ tts,
+ EMPTY_CTXT)));
2172
}
2173
if self.check(&token::OpenDelim(token::Brace)) {
2174
// This is a struct literal, unless we're prohibited
@@ -3449,7 +3449,7 @@ impl<'a> Parser<'a> {
3449
3450
|p| p.parse_token_tree()
3451
));
3452
3453
3454
let style = if delim == token::Brace {
3455
MacStmtWithBraces
0 commit comments