rust/crates/ide-assists
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
..
src Auto merge of #14920 - lowr:fix/overhaul-named-struct-to-tuple-struct, r=Veykril 2023-05-30 11:45:22 +00:00
Cargo.toml internal: Enable smallvec's union feature 2023-02-14 17:01:01 +01:00