@@ -14,7 +14,7 @@ use super::{FnCtxt, Needs};
14
14
use super :: method:: MethodCallee ;
15
15
use rustc:: ty:: { self , Ty , TypeFoldable , TypeVariants } ;
16
16
use rustc:: ty:: TypeVariants :: { TyStr , TyRef , TyAdt } ;
17
- use rustc:: ty:: adjustment:: { Adjustment , Adjust , AutoBorrow , AutoBorrowMutability } ;
17
+ use rustc:: ty:: adjustment:: { Adjustment , Adjust , AllowTwoPhase , AutoBorrow , AutoBorrowMutability } ;
18
18
use rustc:: infer:: type_variable:: TypeVariableOrigin ;
19
19
use errors;
20
20
use syntax_pos:: Span ;
@@ -206,7 +206,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
206
206
hir:: MutMutable => AutoBorrowMutability :: Mutable {
207
207
// Allow two-phase borrows for binops in initial deployment
208
208
// since they desugar to methods
209
- allow_two_phase_borrow : true ,
209
+ allow_two_phase_borrow : AllowTwoPhase :: Yes ,
210
210
}
211
211
} ;
212
212
let autoref = Adjustment {
@@ -223,7 +223,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
223
223
hir:: MutMutable => AutoBorrowMutability :: Mutable {
224
224
// Allow two-phase borrows for binops in initial deployment
225
225
// since they desugar to methods
226
- allow_two_phase_borrow : true ,
226
+ allow_two_phase_borrow : AllowTwoPhase :: Yes ,
227
227
}
228
228
} ;
229
229
let autoref = Adjustment {
0 commit comments