Skip to content

Commit 23871f9

Browse files
committed
Auto merge of rust-lang#14140 - Veykril:proc-macro-srv-fix, r=Veykril
fix: Fix proc-macro-server incorrectly stripping delimiters 🙄
2 parents 646f973 + 1c2292e commit 23871f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl Extend<TokenStream> for TokenStream {
6565
for tkn in item {
6666
match tkn {
6767
tt::TokenTree::Subtree(subtree)
68-
if subtree.delimiter.kind != tt::DelimiterKind::Invisible =>
68+
if subtree.delimiter.kind == tt::DelimiterKind::Invisible =>
6969
{
7070
self.token_trees.extend(subtree.token_trees);
7171
}

0 commit comments

Comments
 (0)