Struct rustc_typeck::check_unused::ExternCrateToLint [−][src]
struct ExternCrateToLint {
def_id: DefId,
span: Span,
orig_name: Option<Symbol>,
warn_if_unused: bool,
}Fields
def_id: DefIdExpand description
DefId of the extern crate
span: SpanExpand description
span from the item
orig_name: Option<Symbol>Expand description
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: boolExpand description
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
impl !Send for ExternCrateToLint
impl !Sync for ExternCrateToLint
impl Unpin for ExternCrateToLint
impl UnwindSafe for ExternCrateToLint
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,