@@ -14,7 +14,7 @@ use super::{FnCtxt, Needs};
1414use super :: method:: MethodCallee ;
1515use rustc:: ty:: { self , Ty , TypeFoldable , TypeVariants } ;
1616use 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 } ;
1818use rustc:: infer:: type_variable:: TypeVariableOrigin ;
1919use errors;
2020use syntax_pos:: Span ;
@@ -206,7 +206,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
206206 hir:: MutMutable => AutoBorrowMutability :: Mutable {
207207 // Allow two-phase borrows for binops in initial deployment
208208 // since they desugar to methods
209- allow_two_phase_borrow : true ,
209+ allow_two_phase_borrow : AllowTwoPhase :: Yes ,
210210 }
211211 } ;
212212 let autoref = Adjustment {
@@ -223,7 +223,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
223223 hir:: MutMutable => AutoBorrowMutability :: Mutable {
224224 // Allow two-phase borrows for binops in initial deployment
225225 // since they desugar to methods
226- allow_two_phase_borrow : true ,
226+ allow_two_phase_borrow : AllowTwoPhase :: Yes ,
227227 }
228228 } ;
229229 let autoref = Adjustment {
0 commit comments