From 1c2292e5c6452dcf9f46072a0fb303526f1e326d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 13 Feb 2023 12:07:31 +0100 Subject: [PATCH] fix: Fix proc-macro-server incorrectly stripping delimiters --- .../src/abis/abi_sysroot/ra_server/token_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs b/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs index 7de30e73928a3..d091d431900a0 100644 --- a/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs +++ b/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs @@ -65,7 +65,7 @@ impl Extend 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); }