Struct rustc_passes::dead::DeadVisitor
source · struct DeadVisitor<'tcx> {
tcx: TyCtxt<'tcx>,
live_symbols: &'tcx LocalDefIdSet,
ignored_derived_traits: &'tcx LocalDefIdMap<Vec<(DefId, DefId)>>,
}
Fields§
§tcx: TyCtxt<'tcx>
§live_symbols: &'tcx LocalDefIdSet
§ignored_derived_traits: &'tcx LocalDefIdMap<Vec<(DefId, DefId)>>
Implementations§
source§impl<'tcx> DeadVisitor<'tcx>
impl<'tcx> DeadVisitor<'tcx>
fn should_warn_about_field(&mut self, field: &FieldDef) -> ShouldWarnAboutField
fn lint_at_single_level( &self, dead_codes: &[LocalDefId], participle: &str, parent_item: Option<LocalDefId>, is_positional: bool )
fn warn_multiple( &self, def_id: LocalDefId, participle: &str, dead_codes: Vec<DeadItem>, is_positional: bool )
fn warn_dead_code(&mut self, id: LocalDefId, participle: &str)
fn check_definition(&mut self, def_id: LocalDefId)
fn is_live_code(&self, def_id: LocalDefId) -> bool
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for DeadVisitor<'tcx>
impl<'tcx> !Send for DeadVisitor<'tcx>
impl<'tcx> !Sync for DeadVisitor<'tcx>
impl<'tcx> Unpin for DeadVisitor<'tcx>
impl<'tcx> !UnwindSafe for DeadVisitor<'tcx>
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: 24 bytes