We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287a544 commit cf41053Copy full SHA for cf41053
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