We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d8ffa commit 5749bd0Copy full SHA for 5749bd0
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