parse_attribute

Function parse_attribute 

Source
fn parse_attribute(
    dialect: Option<MirDialect>,
    phase: Option<MirPhase>,
) -> MirPhase
Expand description

Turns the arguments passed to #[custom_mir(..)] into a proper MirPhase. Panics if this isn’t possible for any reason.