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.
SyntaxEditor
1 parent 9549e47 commit fbd6713Copy full SHA for fbd6713
src/tools/rust-analyzer/crates/syntax/src/syntax_editor/edit_algo.rs
@@ -73,7 +73,7 @@ pub(super) fn apply_edits(editor: SyntaxEditor) -> SyntaxEdit {
73
})
74
.all(|(l, r)| {
75
get_node_depth(l.target_parent()) != get_node_depth(r.target_parent())
76
- || l.target_range().intersect(r.target_range()).is_none()
+ || (l.target_range().end() <= r.target_range().start())
77
});
78
79
if stdx::never!(
0 commit comments