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

struct ExternCrateToLint {
    def_id: DefId,
    span: Span,
    orig_name: Option<Symbol>,
    warn_if_unused: bool,
}

Fields

def_id: DefId

DefId of the extern crate

span: Span

span from the item

orig_name: Option<Symbol>

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)

warn_if_unused: bool

if false, the original name started with _, so we shouldn't lint about it going unused (but we should still emit idiom lints).

Auto Trait Implementations

impl RefUnwindSafe for ExternCrateToLint[src]

impl !Send for ExternCrateToLint[src]

impl !Sync for ExternCrateToLint[src]

impl Unpin for ExternCrateToLint[src]

impl UnwindSafe for ExternCrateToLint[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]