@@ -68,7 +68,7 @@ use crate::{
6868 global_env:: GlobalEnv ,
6969 pretty:: { Pretty , PrettyCx } ,
7070 queries:: { QueryErr , QueryResult } ,
71- rty:: subst:: SortSubst ,
71+ rty:: { self , subst:: SortSubst } ,
7272} ;
7373
7474/// The definition of the data sort automatically generated for a struct or enum.
@@ -713,7 +713,7 @@ pub fn to_closure_sig(
713713 tys : & [ Ty ] ,
714714 args : & flux_rustc_bridge:: ty:: GenericArgs ,
715715 poly_sig : & PolyFnSig ,
716- no_panic : bool ,
716+ no_panic : Expr ,
717717) -> PolyFnSig {
718718 let closure_args = args. as_closure ( ) ;
719719 let kind_ty = closure_args. kind_ty ( ) . to_rustc ( tcx) ;
@@ -723,7 +723,7 @@ pub fn to_closure_sig(
723723
724724 let mut vars = poly_sig. vars ( ) . clone ( ) . to_vec ( ) ;
725725 let fn_sig = poly_sig. clone ( ) . skip_binder ( ) ;
726- let closure_ty = Ty :: closure ( closure_id. into ( ) , tys, args, no_panic) ;
726+ let closure_ty = Ty :: closure ( closure_id. into ( ) , tys, args, no_panic. clone ( ) ) ;
727727 let env_ty = match kind {
728728 ClosureKind :: Fn => {
729729 vars. push ( BoundVariableKind :: Region ( BoundRegionKind :: ClosureEnv ) ) ;
@@ -755,7 +755,7 @@ pub fn to_closure_sig(
755755 fn_sig. requires . clone ( ) ,
756756 inputs. into ( ) ,
757757 output,
758- if no_panic { crate :: rty :: Expr :: tt ( ) } else { crate :: rty :: Expr :: ff ( ) } ,
758+ no_panic,
759759 false ,
760760 ) ;
761761
@@ -1616,7 +1616,7 @@ impl Ty {
16161616 did : DefId ,
16171617 tys : impl Into < List < Ty > > ,
16181618 args : & flux_rustc_bridge:: ty:: GenericArgs ,
1619- no_panic : bool ,
1619+ no_panic : rty :: Expr ,
16201620 ) -> Ty {
16211621 BaseTy :: Closure ( did, tys. into ( ) , args. clone ( ) , no_panic) . to_ty ( )
16221622 }
@@ -1830,7 +1830,7 @@ pub enum BaseTy {
18301830 Alias ( AliasKind , AliasTy ) ,
18311831 Array ( Ty , Const ) ,
18321832 Never ,
1833- Closure ( DefId , /* upvar_tys */ List < Ty > , flux_rustc_bridge:: ty:: GenericArgs , bool ) ,
1833+ Closure ( DefId , /* upvar_tys */ List < Ty > , flux_rustc_bridge:: ty:: GenericArgs , rty :: Expr ) ,
18341834 Coroutine (
18351835 DefId ,
18361836 /*resume_ty: */ Ty ,
0 commit comments