We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06737ec + 1451270 commit 081cf02Copy full SHA for 081cf02
crates/tt/src/lib.rs
@@ -76,19 +76,6 @@ impl<S: Span> Subtree<S> {
76
pub const fn empty(span: DelimSpan<S>) -> Self {
77
Subtree { delimiter: Delimiter::invisible_delim_spanned(span), token_trees: vec![] }
78
}
79
-
80
- pub fn visit_ids(&mut self, f: &mut impl FnMut(S) -> S) {
81
- self.delimiter.open = f(self.delimiter.open);
82
- self.delimiter.close = f(self.delimiter.close);
83
- self.token_trees.iter_mut().for_each(|tt| match tt {
84
- crate::TokenTree::Leaf(leaf) => match leaf {
85
- crate::Leaf::Literal(it) => it.span = f(it.span),
86
- crate::Leaf::Punct(it) => it.span = f(it.span),
87
- crate::Leaf::Ident(it) => it.span = f(it.span),
88
- },
89
- crate::TokenTree::Subtree(s) => s.visit_ids(f),
90
- })
91
- }
92
93
94
#[derive(Debug, Copy, Clone, PartialEq)]
0 commit comments