Skip to content

save-analysis: inferred crates are not included #48742

Closed
@nrc

Description

@nrc

save-analysis includes crates declared with extern crate or in the implicit prelude, but does not include those inferred from imports due to the new extern crate elision feature. I assume because extern_crate on the tcx does not include info for those crates (see https://github.com/rust-lang/rust/blob/master/src/librustc_save_analysis/lib.rs#L113).

This is the root cause for part of rust-lang/rls#729

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-save-analysisArea: saving results of analyses such as inference and borrowck results to a file.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions