Skip to main content

fmt_edges

Function fmt_edges 

Source
fn fmt_edges(
    f: &mut Formatter<'_>,
    succs: &[(&str, BasicBlock)],
    unwind: UnwindAction,
) -> Result
Expand description

The outgoing edges of a terminator, as rustc prints them (see its TerminatorKind::fmt): the successors, labeled, with a cleanup block as the unwind successor and any other unwind action after them (unwind continue, …): -> [return: bb1, unwind: bb2], -> [return: bb1, unwind continue]. A single successor and nothing else is printed unlabeled: -> bb2.