Skip to content

Commit 7ecd16c

Browse files
author
Remi Delmas
committed
Add UnsafeBinder variant (WIP in rustc).
Rustc has started implementing `UnsafeBinder`: - rust-lang/rust#134625 - rust-lang/rust#130516 Only the enums variants have been added for now, semantics is TBD.
1 parent 0a4a435 commit 7ecd16c

File tree

1 file changed

+4
-0
lines changed
  • kani-compiler/src/codegen_cprover_gotoc/codegen

1 file changed

+4
-0
lines changed

kani-compiler/src/codegen_cprover_gotoc/codegen/typ.rs

+4
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ impl<'tcx> GotocCtx<'tcx> {
625625
ty::CoroutineWitness(_, _) | ty::Infer(_) | ty::Placeholder(_) | ty::Error(_) => {
626626
unreachable!("remnants of type checking")
627627
}
628+
// TODO cf. https://github.com/rust-lang/rust/issues/130516
629+
ty::UnsafeBinder(_) => todo!(),
628630
}
629631
}
630632

@@ -1032,6 +1034,8 @@ impl<'tcx> GotocCtx<'tcx> {
10321034
ty::Infer(_) => todo!("{:?} {:?}", pointee_type, pointee_type.kind()),
10331035
ty::Param(_) => todo!("{:?} {:?}", pointee_type, pointee_type.kind()),
10341036
ty::Placeholder(_) => todo!("{:?} {:?}", pointee_type, pointee_type.kind()),
1037+
// TODO cf. https://github.com/rust-lang/rust/issues/130516
1038+
ty::UnsafeBinder(_) => todo!(),
10351039
}
10361040
}
10371041

0 commit comments

Comments
 (0)