StructsΒ§
- Dead
Item π - Dead
Visitor π - Mark
Symbol πVisitor
EnumsΒ§
- Comes
From πAllow Expect - Determine if a work from the worklist is coming from a
#[allow]
or a#[expect]
ofdead_code
- Report
On π - Should
Warn πAbout Field
FunctionsΒ§
- check_
mod_ πdeathness - create_
and_ πseed_ worklist - has_
allow_ πdead_ code_ or_ lang_ attr - live_
symbols_ πand_ ignored_ derived_ traits - maybe_
record_ πas_ seed - Examine the given definition and record it in the worklist if it should be considered live.
- provide π
- should_
explore π - Any local definition that may call something in its body block should be explored. For example, if itβs a live function, then we should explore its block to check for codes that may need to be marked as live.