Macro std::intrinsics::mir::mir

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

        $entry_block:block

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

Convenience 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.