Skip to main content

Module match_branches

Module match_branches 

Source

Re-exportsยง

use rustc_abi::Integer; ๐Ÿ”’
use rustc_const_eval::const_eval::mk_eval_cx_for_const_val; ๐Ÿ”’
use rustc_index::bit_set::DenseBitSet; ๐Ÿ”’
use rustc_middle::ty::layout::IntegerExt; ๐Ÿ”’
use rustc_middle::ty::layout::TyAndLayout; ๐Ÿ”’
use rustc_middle::ty::util::Discr; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::ScalarInt; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use super::simplify::simplify_cfg; ๐Ÿ”’
use crate::PassPolicy; ๐Ÿ”’
use crate::patch::MirPatch; ๐Ÿ”’
use crate::unreachable_prop::remove_successors_from_switch; ๐Ÿ”’
use rustc_middle::mir::*; ๐Ÿ”’

Structsยง

MatchBranchSimplification ๐Ÿ”’
Unifies all targets into one basic block if each statement can have the same statement.
SimplifyMatch ๐Ÿ”’

Functionsยง

can_cast ๐Ÿ”’
Check if the cast constant using IntToInt is equal to the target constant.
candidate_assign ๐Ÿ”’
candidate_const ๐Ÿ”’
candidate_match ๐Ÿ”’
Returns the first case target if all targets have an equal number of statements and identical destination.
identical_stmts ๐Ÿ”’
simplify_match ๐Ÿ”’
split_first_case ๐Ÿ”’