@@ -11,14 +11,14 @@ use rustc_middle::ty::subst::{InternalSubsts, Subst, SubstsRef};
11
11
use rustc_middle:: ty:: { self , AssocItemContainer , AssocKind , TyCtxt , TypeFoldable } ;
12
12
13
13
use rustc_hir:: def_id:: DefId ;
14
- use rustc_hir:: Unsafety ;
15
14
16
15
use rustc_span:: symbol:: sym;
17
16
18
17
use std:: fmt;
19
18
use std:: sync:: Arc ;
20
19
21
20
use crate :: chalk:: lowering:: { self , LowerInto } ;
21
+ use rustc_hir:: Unsafety ;
22
22
23
23
pub struct RustIrDatabase < ' tcx > {
24
24
pub ( crate ) interner : RustInterner < ' tcx > ,
@@ -247,12 +247,14 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
247
247
} ;
248
248
Arc :: new ( chalk_solve:: rust_ir:: FnDefDatum {
249
249
id : fn_def_id,
250
- abi : sig. abi ( ) ,
251
- safety : match sig. unsafety ( ) {
252
- Unsafety :: Normal => chalk_ir:: Safety :: Safe ,
253
- Unsafety :: Unsafe => chalk_ir:: Safety :: Unsafe ,
250
+ sig : chalk_ir:: FnSig {
251
+ abi : sig. abi ( ) ,
252
+ safety : match sig. unsafety ( ) {
253
+ Unsafety :: Normal => chalk_ir:: Safety :: Safe ,
254
+ Unsafety :: Unsafe => chalk_ir:: Safety :: Unsafe ,
255
+ } ,
256
+ variadic : sig. c_variadic ( ) ,
254
257
} ,
255
- variadic : sig. c_variadic ( ) ,
256
258
binders : chalk_ir:: Binders :: new ( binders, bound) ,
257
259
} )
258
260
}
0 commit comments