struct NormalizeRuntimeCallsAndSpreadsPass<'a> {
elaborator: &'a mut Elaborator,
locals: &'a mut Vec<(String, Ty)>,
}Expand description
Normalize runtime call arguments by expanding tuple spread operands.
Input invariant: args belong to one runtime call expression.
Output invariant: returned arguments contain no CallArg::Spread items.
This pass rewrites ...tuple_ident arguments into indexed field accesses
(tuple_ident.0, tuple_ident.1, …), preserving call argument order.
Spread operands must be identifier expressions and must elaborate to tuple
or unit types.
Pass name: elab.normalize_runtime_calls_and_spreads.
Fields§
§elaborator: &'a mut Elaborator§locals: &'a mut Vec<(String, Ty)>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NormalizeRuntimeCallsAndSpreadsPass<'a>
impl<'a> RefUnwindSafe for NormalizeRuntimeCallsAndSpreadsPass<'a>
impl<'a> Send for NormalizeRuntimeCallsAndSpreadsPass<'a>
impl<'a> Sync for NormalizeRuntimeCallsAndSpreadsPass<'a>
impl<'a> Unpin for NormalizeRuntimeCallsAndSpreadsPass<'a>
impl<'a> !UnwindSafe for NormalizeRuntimeCallsAndSpreadsPass<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more