maybe_drop_guard in rustc_mir_transform::liveness - Rust
Description: Return whether we should consider the current place as a drop guard and skip reporting.

Skip to main content

## maybe_drop_guard

# Function maybe_drop_guard

Source

    fn maybe_drop_guard<'tcx>(
        tcx: TyCtxt<'tcx>,
        typing_env: TypingEnv<'tcx>,
        index: PlaceIndex,
        ever_dropped: &DenseBitSet<PlaceIndex>,
        checked_places: &PlaceSet<'tcx>,
        body: &Body<'tcx>,
    ) -> bool

Expand description

Return whether we should consider the current place as a drop guard and skip reporting.