Globs in save-analysis do not contain exports in value
#49910
Labels
A-save-analysis
Area: saving results of analyses such as inference and borrowck results to a file.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Uncovered by rust-dev-tools/rls-analysis#124.
For the following code:
The save analysis data for the glob use has an empty string for the
value
, when I would expectStruct1
andStruct2
would be in the string.The theory is that the
glob_map
created by thelibrustc_resolve::Resolver
only contains imports actually used inside the module, but the save analysis data wants to include exports as well. The glob_map is used to create thevalue
field in the analysis here.I'm happy to work and submit a PR for this, but I don't think that I understand enough about the resolve code to move forward, particularly around what causes an import to be considered "used". Could someone give me some help?
The text was updated successfully, but these errors were encountered: