return Ok(false);
}
- let loc = match self.frame().loc {
- Ok(loc) => loc,
- Err(_) => {
- // We are unwinding and this fn has no cleanup code.
- // Just go on unwinding.
- trace!("unwinding: skipping frame");
- self.pop_stack_frame(/* unwinding */ true)?;
- return Ok(true);
- }
+ let Ok(loc) = self.frame().loc else {
+ // We are unwinding and this fn has no cleanup code.
+ // Just go on unwinding.
+ trace!("unwinding: skipping frame");
+ self.pop_stack_frame(/* unwinding */ true)?;
+ return Ok(true);
};
let basic_block = &self.body().basic_blocks()[loc.block];