match term.kind {
TerminatorKind::Goto { target: _ } |
TerminatorKind::Resume |
+ TerminatorKind::GeneratorDrop |
TerminatorKind::Unreachable => { }
TerminatorKind::Return => {
// branching terminators - these don't move anything
}
+ TerminatorKind::Yield { ref value, .. } => {
+ self.gather_operand(loc, value);
+ }
+
TerminatorKind::Drop { ref location, target: _, unwind: _ } => {
self.gather_move(loc, location);
}