Auto merge of #14140 - Veykril:proc-macro-srv-fix, r=Veykril

fix: Fix proc-macro-server incorrectly stripping delimiters

🙄
This commit is contained in:
bors 2023-02-13 11:08:23 +00:00
commit 23871f9dd1

View file

@ -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);
}