Remove ImportSource::ExternCrate as the fixed point loop can't affect it

This commit is contained in:
Lukas Wirth 2024-10-05 13:42:46 +02:00
parent 5982d9c420
commit f7ca085690
4 changed files with 102 additions and 138 deletions

View file

@ -288,6 +288,11 @@ pub struct CrateData {
/// The cfg options that could be used by the crate
pub potential_cfg_options: Option<Arc<CfgOptions>>,
pub env: Env,
/// The dependencies of this crate.
///
/// Note that this may contain more dependencies than the crate actually uses.
/// A common example is the test crate which is included but only actually is active when
/// declared in source via `extern crate test`.
pub dependencies: Vec<Dependency>,
pub origin: CrateOrigin,
pub is_proc_macro: bool,