Struct rustc_typeck::check_unused::CheckVisitor
source · [−]struct CheckVisitor<'tcx> {
tcx: TyCtxt<'tcx>,
used_trait_imports: FxHashSet<LocalDefId>,
}Fields
tcx: TyCtxt<'tcx>used_trait_imports: FxHashSet<LocalDefId>Implementations
sourceimpl<'tcx> CheckVisitor<'tcx>
impl<'tcx> CheckVisitor<'tcx>
fn check_import(&self, item_id: ItemId, span: Span)
Trait Implementations
sourceimpl<'tcx> ItemLikeVisitor<'_> for CheckVisitor<'tcx>
impl<'tcx> ItemLikeVisitor<'_> for CheckVisitor<'tcx>
fn visit_item(&mut self, item: &Item<'_>)
fn visit_trait_item(&mut self, _trait_item: &TraitItem<'_>)
fn visit_impl_item(&mut self, _impl_item: &ImplItem<'_>)
fn visit_foreign_item(&mut self, _foreign_item: &ForeignItem<'_>)
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CheckVisitor<'tcx>
impl<'tcx> !Send for CheckVisitor<'tcx>
impl<'tcx> !Sync for CheckVisitor<'tcx>
impl<'tcx> Unpin for CheckVisitor<'tcx>
impl<'tcx> !UnwindSafe for CheckVisitor<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 40 bytes