Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #14915 #14920

Closed
wants to merge 1 commit into from
Closed

Fix #14915 #14920

wants to merge 1 commit into from

Conversation

schmee
Copy link
Contributor

@schmee schmee commented Jun 15, 2014

No description provided.

@schmee
Copy link
Contributor Author

schmee commented Jun 16, 2014

@pcwalton r?

@schmee schmee deleted the remove-sigils branch June 21, 2014 10:07
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…le-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 rust-lang#13780
Fixes rust-lang#14927
tvallotton pushed a commit to tvallotton/rust that referenced this pull request Dec 15, 2023
…ert_tuple_struct_to_named_struct/handle_refs_inside_macro_invocations, r=Veykril

Fix incorrectly replacing references in macro invocation in "Convert to named struct" assist

Fixes rust-lang#15630.

Complements rust-lang#13647 (same assist but missed this one), rust-lang#14920 (inverse action assist).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants