@@ -13,8 +13,9 @@ use rustc_index::IndexSlice;
1313use rustc_infer:: infer:: LateBoundRegionConversionTime ;
1414use rustc_middle:: mir:: tcx:: PlaceTy ;
1515use rustc_middle:: mir:: {
16- AggregateKind , Constant , FakeReadCause , Local , LocalInfo , LocalKind , Location , Operand , Place ,
17- PlaceRef , ProjectionElem , Rvalue , Statement , StatementKind , Terminator , TerminatorKind ,
16+ AggregateKind , CallSource , Constant , FakeReadCause , Local , LocalInfo , LocalKind , Location ,
17+ Operand , Place , PlaceRef , ProjectionElem , Rvalue , Statement , StatementKind , Terminator ,
18+ TerminatorKind ,
1819} ;
1920use rustc_middle:: ty:: print:: Print ;
2021use rustc_middle:: ty:: { self , Instance , Ty , TyCtxt } ;
@@ -414,7 +415,12 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
414415 if !is_terminator {
415416 continue ;
416417 } else if let Some ( Terminator {
417- kind : TerminatorKind :: Call { func, from_hir_call : false , .. } ,
418+ kind :
419+ TerminatorKind :: Call {
420+ func,
421+ call_source : CallSource :: OverloadedOperator ,
422+ ..
423+ } ,
418424 ..
419425 } ) = & bbd. terminator
420426 {
@@ -839,7 +845,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
839845 debug ! ( "move_spans: target_temp = {:?}" , target_temp) ;
840846
841847 if let Some ( Terminator {
842- kind : TerminatorKind :: Call { fn_span, from_hir_call , .. } , ..
848+ kind : TerminatorKind :: Call { fn_span, call_source , .. } , ..
843849 } ) = & self . body [ location. block ] . terminator
844850 {
845851 let Some ( ( method_did, method_substs) ) =
@@ -859,7 +865,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
859865 method_did,
860866 method_substs,
861867 * fn_span,
862- * from_hir_call,
868+ call_source . from_hir_call ( ) ,
863869 Some ( self . infcx . tcx . fn_arg_names ( method_did) [ 0 ] ) ,
864870 ) ;
865871
0 commit comments