@@ -2051,7 +2051,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
2051
2051
"assemble_unboxed_candidates: kind={:?} obligation={:?}" ,
2052
2052
kind, obligation
2053
2053
) ;
2054
- match self . infcx . closure_kind ( closure_def_id, closure_substs) {
2054
+ match self . infcx . closure_kind ( closure_def_id,
2055
+ ty:: ClosureSubsts :: from_ref ( closure_substs) ) {
2055
2056
Some ( closure_kind) => {
2056
2057
debug ! (
2057
2058
"assemble_unboxed_candidates: closure_kind = {:?}" ,
@@ -3375,7 +3376,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
3375
3376
obligations. push ( Obligation :: new (
3376
3377
obligation. cause . clone ( ) ,
3377
3378
obligation. param_env ,
3378
- ty:: Predicate :: ClosureKind ( closure_def_id, ty:: ClosureSubsts :: from_ref ( substs. clone ( ) ) , kind) ,
3379
+ ty:: Predicate :: ClosureKind ( closure_def_id,
3380
+ ty:: ClosureSubsts :: from_ref ( substs. clone ( ) ) , kind) ,
3379
3381
) ) ;
3380
3382
}
3381
3383
@@ -3876,7 +3878,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
3876
3878
"closure_trait_ref_unnormalized(obligation={:?}, closure_def_id={:?}, substs={:?})" ,
3877
3879
obligation, closure_def_id, substs,
3878
3880
) ;
3879
- let closure_type = self . infcx . closure_sig ( closure_def_id, substs) ;
3881
+ let closure_type = self . infcx . closure_sig ( closure_def_id,
3882
+ ty:: ClosureSubsts :: from_ref ( substs) ) ;
3880
3883
3881
3884
debug ! (
3882
3885
"closure_trait_ref_unnormalized: closure_type = {:?}" ,
0 commit comments