Struct rustc_resolve::check_unused::ExternCrateToLint
source · struct ExternCrateToLint {
id: NodeId,
span: Span,
span_with_attributes: Span,
vis_span: Span,
has_attrs: bool,
ident: Ident,
renames: bool,
}
Fields§
§id: NodeId
§span: Span
Span from the item
span_with_attributes: Span
Span to use to suggest complete removal.
vis_span: Span
Span of the visibility, if any.
has_attrs: bool
Whether the item has attrs.
ident: Ident
Name used to refer to the crate.
renames: bool
Whether the statement renames the crate extern crate orig_name as new_name;
.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 44 bytes