bors 51c3ab5b85 Auto merge of #14920 - lowr:fix/overhaul-named-struct-to-tuple-struct, r=Veykril
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
2023-05-30 11:45:22 +00:00
..
2023-02-13 13:55:14 +02:00
2023-05-28 23:25:15 +03:30
2023-05-28 23:25:15 +03:30
2023-05-28 23:25:15 +03:30
2023-05-28 23:25:15 +03:30
2023-05-28 23:25:15 +03:30
2023-05-28 23:25:15 +03:30
2023-05-13 11:51:28 +02:00
2023-05-02 20:02:43 +03:00
2023-02-13 13:55:14 +02:00
2023-05-06 00:49:23 -07:00
2023-03-13 10:42:24 +02:00