Struct rustc_passes::dead::DeadVisitor
source · struct DeadVisitor<'tcx> {
tcx: TyCtxt<'tcx>,
live_symbols: &'tcx FxHashSet<LocalDefId>,
ignored_derived_traits: &'tcx FxHashMap<LocalDefId, Vec<(DefId, DefId)>>,
}
Fields
tcx: TyCtxt<'tcx>
live_symbols: &'tcx FxHashSet<LocalDefId>
ignored_derived_traits: &'tcx FxHashMap<LocalDefId, Vec<(DefId, DefId)>>
Implementations
sourceimpl<'tcx> DeadVisitor<'tcx>
impl<'tcx> DeadVisitor<'tcx>
fn should_warn_about_field(&mut self, field: &FieldDef) -> ShouldWarnAboutField
fn warn_multiple_dead_codes(
&self,
dead_codes: &[LocalDefId],
participle: &str,
parent_item: Option<LocalDefId>,
is_positional: bool
)
fn warn_dead_fields_and_variants(
&self,
def_id: LocalDefId,
participle: &str,
dead_codes: Vec<DeadVariant>,
is_positional: bool
)
fn warn_dead_code(&mut self, id: LocalDefId, participle: &str)
fn check_definition(&mut self, def_id: LocalDefId)
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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