mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
fix: Strip unused token ids from eager macro input token maps
This commit is contained in:
parent
bf5624664d
commit
c7b34e4873
5 changed files with 37 additions and 7 deletions
|
@ -70,7 +70,7 @@ pub mod token_id {
|
|||
}
|
||||
|
||||
impl Subtree {
|
||||
pub fn visit_ids(&mut self, f: &impl Fn(TokenId) -> TokenId) {
|
||||
pub fn visit_ids(&mut self, f: &mut impl FnMut(TokenId) -> TokenId) {
|
||||
self.delimiter.open = f(self.delimiter.open);
|
||||
self.delimiter.close = f(self.delimiter.close);
|
||||
self.token_trees.iter_mut().for_each(|tt| match tt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue