We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3572d74 + 5749bd0 commit 1788d49Copy full SHA for 1788d49
compiler/rustc_smir/src/rustc_smir/mod.rs
@@ -330,10 +330,7 @@ fn rustc_terminator_to_terminator(
330
target: target.as_usize(),
331
unwind: rustc_unwind_to_unwind(unwind),
332
},
333
- Yield { .. } => todo!(),
334
- GeneratorDrop => Terminator::GeneratorDrop,
335
- FalseEdge { .. } => todo!(),
336
- FalseUnwind { .. } => todo!(),
337
InlineAsm { .. } => todo!(),
+ Yield { .. } | GeneratorDrop | FalseEdge { .. } | FalseUnwind { .. } => unreachable!(),
338
}
339
0 commit comments