Skip to content

Commit

Permalink
Use GenSig instead of PolyGenSig
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Dec 8, 2023
1 parent 21d2623 commit e604a05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/typ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ impl<'tcx> GotocCtx<'tcx> {
ty: Ty<'tcx>,
args: ty::GenericArgsRef<'tcx>,
) -> ty::PolyFnSig<'tcx> {
let sig = args.as_coroutine().poly_sig();
let sig = args.as_coroutine().sig();

let bound_vars = self.tcx.mk_bound_variable_kinds_from_iter(
sig.bound_vars().iter().chain(iter::once(ty::BoundVariableKind::Region(ty::BrEnv))),
iter::once(ty::BoundVariableKind::Region(ty::BrEnv)),
);
let br = ty::BoundRegion {
var: ty::BoundVar::from_usize(bound_vars.len() - 1),
Expand All @@ -349,7 +349,6 @@ impl<'tcx> GotocCtx<'tcx> {
let pin_args = self.tcx.mk_args(&[env_ty.into()]);
let env_ty = Ty::new_adt(self.tcx, pin_adt_ref, pin_args);

let sig = sig.skip_binder();
// The `FnSig` and the `ret_ty` here is for a coroutines main
// `coroutine::resume(...) -> CoroutineState` function in case we
// have an ordinary coroutine, or the `Future::poll(...) -> Poll`
Expand Down

0 comments on commit e604a05

Please sign in to comment.