Auto merge of #14140 - Veykril:proc-macro-srv-fix, r=Veykril
fix: Fix proc-macro-server incorrectly stripping delimiters
🙄
This commit is contained in:
commit
23871f9dd1
@ -65,7 +65,7 @@ fn extend<I: IntoIterator<Item = TokenStream>>(&mut self, streams: I) {
|
|||||||
for tkn in item {
|
for tkn in item {
|
||||||
match tkn {
|
match tkn {
|
||||||
tt::TokenTree::Subtree(subtree)
|
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);
|
self.token_trees.extend(subtree.token_trees);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user