Skip to content

Finalize rename infra rewrite #7668

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

Merged
merged 3 commits into from
Feb 14, 2021
Merged

Finalize rename infra rewrite #7668

merged 3 commits into from
Feb 14, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Feb 13, 2021

This should be the final PR in regards to rewriting rename stuff, #4290.

It addresses 3 things:
- Currently renaming import aliases causes some undesired behavior(see #5198) which is why this PR causes us to just return an error if an attempt at renaming an alias is made for the time being. Though this only prevents it from happening when the alias import is renamed, so its not too helpful.
- Fixes #6898
- If we are inside a macro file simply rename the input name node as there isn't really a way to do any of the fancy shorthand renames and similar things as for that we would have to exactly know what the macro generates and what not.

@matklad
Copy link
Member

matklad commented Feb 14, 2021

bors r+

Nice!

@bors
Copy link
Contributor

bors bot commented Feb 14, 2021

@bors bors bot merged commit 63c5c92 into rust-lang:master Feb 14, 2021
@Veykril Veykril deleted the rename-stuff branch February 14, 2021 15:44
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.

rename symbol error
2 participants