Macro core::intrinsics::mir::__internal_extract_let
source · pub macro __internal_extract_let { ( let $var:ident $(: $ty:ty)? = $expr:expr; $($rest:tt)* ) => { ... }, ( let $var:ident $(: $ty:ty)? = const $block:block; $($rest:tt)* ) => { ... }, ( $stmt:stmt; $($rest:tt)* ) => { ... }, ( $expr:expr ) => { ... }, }
🔬This is a nightly-only experimental API. (
custom_mir
)Expand description
Helper macro that extracts the let
declarations out of a bunch of statements.
This macro is written using the “statement muncher” strategy. Each invocation parses the first statement out of the input, does the appropriate thing with it, and then recursively calls the same macro on the remainder of the input.