Correctly set the span of the proc_macro crate's Group delimiters

Previously only the open delimiter's span was set, and this caused... weird problems.
This commit is contained in:
Chayim Refael Friedman 2025-05-21 18:31:14 +03:00
parent 96a253112c
commit bf8d03c1b5
4 changed files with 15 additions and 5 deletions

View file

@ -238,7 +238,8 @@ impl server::TokenStream for TokenIdServer {
&mut self,
stream: Self::TokenStream,
) -> Vec<bridge::TokenTree<Self::TokenStream, Self::Span, Self::Symbol>> {
stream.into_bridge()
// Can't join with `TokenId`.
stream.into_bridge(&mut |first, _second| first)
}
}