Skip to main content

Module drop_flag_effects

Module drop_flag_effects 

Source

Re-exportsΒ§

use rustc_abi::VariantIdx; πŸ”’
use rustc_middle::mir; πŸ”’
use rustc_middle::mir::Body; πŸ”’
use rustc_middle::mir::Location; πŸ”’
use rustc_middle::mir::Terminator; πŸ”’
use rustc_middle::mir::TerminatorKind; πŸ”’
use smallvec::SmallVec; πŸ”’
use tracing::debug; πŸ”’
use super::move_paths::InitKind; πŸ”’
use super::move_paths::LookupResult; πŸ”’
use super::move_paths::MoveData; πŸ”’
use super::move_paths::MovePathIndex; πŸ”’

EnumsΒ§

DropFlagState
The value of an inserted drop flag.
InactiveVariants πŸ”’
Indicates which variants are inactive at a SwitchInt edge by listing their VariantIdxs or specifying the single active variant’s VariantIdx.

FunctionsΒ§

drop_flag_effects_for_function_entry
Calls callback for each child move path of the function’s arguments. Note the move paths’ DropFlagState argument to the callback will always be DropFlagState::Present.
drop_flag_effects_for_location
for_location_inits πŸ”’
move_path_children_matching
on_all_children_bits
on_all_inactive_variants πŸ”’
Calls handle_inactive_variant for each child move path of enum_place corresponding to an inactive variant at a particular SwitchInt edge.
on_lookup_result_bits