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: replace_qualified_name_with_use keeps qualifier for import #9551

Merged
merged 1 commit into from
Jul 10, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jul 10, 2021

Fixes #9537, #9540
bors r+

@Veykril
Copy link
Member Author

Veykril commented Jul 10, 2021

This isnt a 100% fix if the module that starts the qualifier is being re-exported in other places it might still fail. For a complete fix we would have to record renames of use items, which also reminds me we have to record attributes on use items somehow for some other issues(like doc(hidden) see #9197) which we dont do yet either.

@bors
Copy link
Contributor

bors bot commented Jul 10, 2021

@bors bors bot merged commit 6f3a3bd into rust-lang:master Jul 10, 2021
@Veykril Veykril deleted the repl-qual branch July 10, 2021 15:19
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.

Replace qualified path with use replaces with a different path
1 participant