Struct rustc_typeck::check_unused::ExternCrateToLint[][src]

struct ExternCrateToLint {
    def_id: DefId,
    span: Span,
    orig_name: Option<Name>,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

def-id of the extern crate

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

span from the item

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

if Some, then this is renamed (extern crate orig_name as crate_name), and -- perhaps surprisingly -- this stores the original name (item.name will contain the new name)

Auto Trait Implementations

impl !Send for ExternCrateToLint

impl !Sync for ExternCrateToLint