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.
1 parent 577f70c commit ccb789bCopy full SHA for ccb789b
crates/hir_expand/src/fixup.rs
@@ -122,7 +122,11 @@ fn has_error_to_handle(node: &SyntaxNode) -> bool {
122
has_error(node) || node.children().any(|c| !can_handle_error(&c) && has_error_to_handle(&c))
123
}
124
125
-pub(crate) fn reverse_fixups(tt: &mut Subtree, token_map: &TokenMap, undo_info: &SyntaxFixupUndoInfo) {
+pub(crate) fn reverse_fixups(
126
+ tt: &mut Subtree,
127
+ token_map: &TokenMap,
128
+ undo_info: &SyntaxFixupUndoInfo,
129
+) {
130
tt.token_trees.retain(|tt| match tt {
131
tt::TokenTree::Leaf(leaf) => {
132
token_map.synthetic_token_id(leaf.id()).is_none()
0 commit comments