@@ -65,7 +65,7 @@ fn builtin_body<'tcx>(
6565 ctx : & mut Why3Generator < ' tcx > ,
6666 def_id : DefId ,
6767) -> ( Module , CloneSummary < ' tcx > ) {
68- let mut names = CloneMap :: new ( ctx. tcx , def_id, CloneLevel :: Stub ) ;
68+ let mut names = CloneMap :: new ( ctx. tcx , def_id. into ( ) , CloneLevel :: Stub ) ;
6969 let mut sig = signature_of ( ctx, & mut names, def_id) ;
7070 let ( val_args, val_binders) = binders_to_args ( ctx, sig. args ) ;
7171 sig. args = val_binders;
@@ -133,7 +133,7 @@ pub(crate) fn val_decl<'tcx>(
133133}
134134
135135fn body_module < ' tcx > ( ctx : & mut Why3Generator < ' tcx > , def_id : DefId ) -> ( Module , CloneSummary < ' tcx > ) {
136- let mut names = CloneMap :: new ( ctx. tcx , def_id, CloneLevel :: Stub ) ;
136+ let mut names = CloneMap :: new ( ctx. tcx , def_id. into ( ) , CloneLevel :: Stub ) ;
137137
138138 let mut sig = signature_of ( ctx, & mut names, def_id) ;
139139 let mut val_sig = sig. clone ( ) ;
@@ -198,7 +198,7 @@ fn body_module<'tcx>(ctx: &mut Why3Generator<'tcx>, def_id: DefId) -> (Module, C
198198}
199199
200200pub ( crate ) fn stub_module ( ctx : & mut Why3Generator , def_id : DefId ) -> Module {
201- let mut names = CloneMap :: new ( ctx. tcx , def_id, CloneLevel :: Stub ) ;
201+ let mut names = CloneMap :: new ( ctx. tcx , def_id. into ( ) , CloneLevel :: Stub ) ;
202202 let mut sig = signature_of ( ctx, & mut names, def_id) ;
203203
204204 if util:: is_predicate ( ctx. tcx , def_id) {
@@ -225,7 +225,7 @@ fn proof_module(ctx: &mut Why3Generator, def_id: DefId) -> Option<Module> {
225225 return None ;
226226 }
227227
228- let mut names = CloneMap :: new ( ctx. tcx , def_id, CloneLevel :: Body ) ;
228+ let mut names = CloneMap :: new ( ctx. tcx , def_id. into ( ) , CloneLevel :: Body ) ;
229229
230230 let mut sig = signature_of ( ctx, & mut names, def_id) ;
231231
0 commit comments