Skip to content

Commit 86723d3

Browse files
committed
Use true for open_delim/close_delim in one spot.
The `DelimToken` here is `NoDelim`, which means the returned delim tokens will just be ignored by `Parser::bump()`. This commit changes things so the delim tokens won't be returned.
1 parent 804103b commit 86723d3

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+2
-2
lines changed

compiler/rustc_parse/src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ impl TokenCursor {
335335
TokenCursorFrame::new(
336336
delim_span,
337337
token::NoDelim,
338-
false,
338+
true,
339339
if attr_style == AttrStyle::Inner {
340340
[TokenTree::token(token::Pound, span), TokenTree::token(token::Not, span), body]
341341
.iter()
@@ -347,7 +347,7 @@ impl TokenCursor {
347347
.cloned()
348348
.collect::<TokenStream>()
349349
},
350-
false,
350+
true,
351351
),
352352
));
353353

0 commit comments

Comments
 (0)