51c3ab5b85
Fix edits for `convert_named_struct_to_tuple_struct` Two fixes: - When replacing syntax nodes, macro files weren't taken into account. Edits were simply made for `node.syntax().text_range()`, which would be wrong range when `node` is inside a macro file. - We do ancestor node traversal for every struct name reference to find record expressions/patterns to edit, but we didn't verify that expressions/patterns do actually refer to the struct we're operating on. Best reviewed one commit at a time. Fixes #13780 Fixes #14927 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |