@@ -1491,7 +1491,7 @@ pub(crate) fn expr_to_vir_with_adjustments<'tcx>(
14911491 ) ;
14921492 let arg = arg. consume ( bctx, get_inner_ty ( ) ) ;
14931493 let args = Arc :: new ( vec ! [ arg. clone( ) ] ) ;
1494- let x = ExprX :: Call ( call_target, args, None ) ;
1494+ let x = ExprX :: Call { target : call_target, args, post_args : None , body : None } ;
14951495 let expr_typ = bctx. mid_ty_to_vir ( expr. span , & ty2) ?;
14961496 Ok ( ExprOrPlace :: Expr ( bctx. spanned_typed_new ( expr. span , & expr_typ, x) ) )
14971497 } else {
@@ -2161,7 +2161,12 @@ pub(crate) fn expr_to_vir_innermost<'tcx>(
21612161 Ok ( ExprOrPlace :: Expr ( bctx. spanned_typed_new (
21622162 expr. span ,
21632163 & expr_typ,
2164- ExprX :: Call ( target, Arc :: new ( vir_args) , None ) ,
2164+ ExprX :: Call {
2165+ target,
2166+ args : Arc :: new ( vir_args) ,
2167+ post_args : None ,
2168+ body : None ,
2169+ } ,
21652170 ) ) )
21662171 }
21672172 }
@@ -2211,7 +2216,7 @@ pub(crate) fn expr_to_vir_innermost<'tcx>(
22112216 call_target_attrs,
22122217 ) ;
22132218 let args = Arc :: new ( vec ! [ arg_vir. clone( ) ] ) ;
2214- mk_expr ( ExprX :: Call ( call_target, args, None ) )
2219+ mk_expr ( ExprX :: Call { target : call_target, args, post_args : None , body : None } )
22152220 } else {
22162221 // Could be a const. In this case the array needs to be translated like:
22172222 // forall |i| array[i] satisfies post-condition of const
@@ -2312,7 +2317,7 @@ pub(crate) fn expr_to_vir_innermost<'tcx>(
23122317 call_target_attrs,
23132318 ) ;
23142319 let args = Arc :: new ( vec ! [ source_vir_expr. clone( ) ] ) ;
2315- mk_expr ( ExprX :: Call ( call_target, args, None ) )
2320+ mk_expr ( ExprX :: Call { target : call_target, args, post_args : None , body : None } )
23162321 }
23172322 _ => {
23182323 let to_ty = bctx. types . expr_ty ( expr) ;
@@ -3100,7 +3105,7 @@ pub(crate) fn expr_to_vir_innermost<'tcx>(
31003105 // tgt[idx] is equivalent to either *index(tgt, idx) or *index_mut(tgt, idx)
31013106 // (The * on the outside isn't part of the adjustments; we add it here)
31023107 let args = Arc :: new ( vec ! [ tgt_vir. clone( ) , idx_vir. clone( ) ] ) ;
3103- let x = ExprX :: Call ( call_target, args, None ) ;
3108+ let x = ExprX :: Call { target : call_target, args, post_args : None , body : None } ;
31043109 let call_ret_typ = if mutbl {
31053110 Arc :: new ( TypX :: MutRef ( expr_typ ( ) ?) )
31063111 } else {
@@ -3946,7 +3951,7 @@ pub(crate) fn maybe_do_ptr_cast<'tcx>(
39463951 call_target_attrs,
39473952 ) ;
39483953 let args = Arc :: new ( vec ! [ src_vir. clone( ) ] ) ;
3949- let x = ExprX :: Call ( call_target, args, None ) ;
3954+ let x = ExprX :: Call { target : call_target, args, post_args : None , body : None } ;
39503955 let expr_typ = typ_of_node_unadjusted ( bctx, dst_expr. span , & dst_expr. hir_id ) ?;
39513956
39523957 if clip {
0 commit comments