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 7de30e73928..d091d431900 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 @@ fn extend>(&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); }