Closed
Description
Loop bodies are not supposed to have destination (loops, on the other hand, may), but since MIR code generates all blocks the same way, it results in an artefact of a never-used dummy assignment in MIR for some loops like:
loop { () }
or
while 1 == 2 { () }
Probably the best thing to do here would be to have a different ExprKind for loop bodies and ignore “returns” from blocks there.