mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Auto merge of #15367 - Veykril:eager-macro-inputs, r=Veykril
fix: Strip unused token ids from eager macro input token maps
This commit is contained in:
commit
151c750dac
10 changed files with 123 additions and 47 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