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 @@ fn extend<I: IntoIterator<Item = TokenStream>>(&mut self, streams: I) {
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);
}