We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unreachable
1 parent 6ffdbc2 commit fbd5264Copy full SHA for fbd5264
kani-compiler/src/codegen_cprover_gotoc/codegen/intrinsic.rs
@@ -609,6 +609,9 @@ impl<'tcx> GotocCtx<'tcx> {
609
}
610
"unchecked_sub" => codegen_op_with_overflow_check!(sub_overflow),
611
"unlikely" => self.codegen_expr_to_place(p, fargs.remove(0)),
612
+ "unreachable" => unreachable!(
613
+ "Expected `std::intrinsics::unreachable` to be handled by `TerminatorKind::Unreachable`"
614
+ ),
615
"volatile_copy_memory" => unstable_codegen!(codegen_intrinsic_copy!(Memmove)),
616
"volatile_copy_nonoverlapping_memory" => {
617
unstable_codegen!(codegen_intrinsic_copy!(Memcpy))
0 commit comments