fn yields_value(branch: &Block) -> bool
Whether a branch ends in a value (if c { f().await } else { x }), which cannot be moved into a hoisted chain. Loops and ifs without else at the end are statements of type ().
if c { f().await } else { x }
if
else
()