Macro std::intrinsics::mir::mir

source ·
pub macro mir(
        $(type RET = $ret_ty:ty ;)?
        $(let $local_decl:ident $(: $local_decl_ty:ty)? ;)*

        {
            $($entry:tt)*
        }

        $(
            $block_name:ident = {
                $($block:tt)*
            }
        )*
    ) {
    ...
}
🔬This is a nightly-only experimental API. (custom_mir)
Expand description

Macro for generating custom MIR.

See the module documentation for syntax details. This macro is not magic - it only transforms your MIR into something that is easier to parse in the compiler.