Skip to content

Commit

Permalink
Auto merge of rust-lang#14140 - Veykril:proc-macro-srv-fix, r=Veykril
Browse files Browse the repository at this point in the history
fix: Fix proc-macro-server incorrectly stripping delimiters

🙄
  • Loading branch information
bors committed Feb 13, 2023
2 parents 646f973 + 1c2292e commit 23871f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Extend<TokenStream> for TokenStream {
for tkn in item {
match tkn {
tt::TokenTree::Subtree(subtree)
if subtree.delimiter.kind != tt::DelimiterKind::Invisible =>
if subtree.delimiter.kind == tt::DelimiterKind::Invisible =>
{
self.token_trees.extend(subtree.token_trees);
}
Expand Down

0 comments on commit 23871f9

Please sign in to comment.