mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 14:33:29 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue