-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
save-analysis doesn't dump information about glob imports #33213
Comments
cc @nrc |
cc @jseyfried I wonder if one of the changes to name resolution could have caused this? I can't really imagine how, but it seems the most likely candidate. |
Unrelated to this issue, but we currently only dump glob-imported names that end up getting used. |
Thanks @jseyfried ! The intended behviour is just to have the used names, i.e., the list of names one would use if you wanted to replace the glob import with a list import. |
Ah, that makes sense. I was thinking more along the lines of refactoring away a needless qualification or moving a path from one module to another, in which we would want to know about unused names as well. |
…save-analysis data
rustc_save_analysis: fix a bug in which glob imports are not dumped This fixes rust-lang#33213, a bug that prevents glob imports from being included in the save-analysis data. r? @nrc
After the changes, I still can reproduce the issue 😞 |
@aochagavia the changes haven't made it into the nighties yet (the current nightly is still 2016-04-28). If you can reproduce on a more up-to-date local build, could you include the |
Oops... Sorry, I thought the changes were already in nightly. My bad. |
No problem! |
Running
rustc foo.rs -Z save-analysis
on the following code:The output is:
I would expect a line containing information about the imports inserted by the compiler, namely
self::foo::Bar
andself::foo::Baz
. This used to work in the past.The text was updated successfully, but these errors were encountered: