Skip to main content

eliminate_get_context_calls

Function eliminate_get_context_calls 

Source
fn eliminate_get_context_calls<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>)
Expand description

HIR uses get_context to unwrap a &mut Context<'_> from a ResumeTy. Both types are just a single pointer, but liveness analysis does not know that and supposes that the operand and the destination are live at the same time. Forcibly inline those calls to avoid this.