cairo_lang_lowering::panic

Function lower_panics

Source
pub fn lower_panics(
    db: &dyn LoweringGroup,
    function_id: ConcreteFunctionWithBodyId,
    lowered: &FlatLowered,
) -> Maybe<FlatLowered>
Expand description

Lowering phase that converts BlockEnd::Panic into BlockEnd::Return, and wraps necessary types with PanicResult<>.