@@ -13,8 +13,9 @@ use rustc_index::IndexSlice;
13
13
use rustc_infer:: infer:: LateBoundRegionConversionTime ;
14
14
use rustc_middle:: mir:: tcx:: PlaceTy ;
15
15
use 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 ,
18
19
} ;
19
20
use rustc_middle:: ty:: print:: Print ;
20
21
use rustc_middle:: ty:: { self , Instance , Ty , TyCtxt } ;
@@ -414,7 +415,12 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
414
415
if !is_terminator {
415
416
continue ;
416
417
} 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
+ } ,
418
424
..
419
425
} ) = & bbd. terminator
420
426
{
@@ -839,7 +845,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
839
845
debug ! ( "move_spans: target_temp = {:?}" , target_temp) ;
840
846
841
847
if let Some ( Terminator {
842
- kind : TerminatorKind :: Call { fn_span, from_hir_call , .. } , ..
848
+ kind : TerminatorKind :: Call { fn_span, call_source , .. } , ..
843
849
} ) = & self . body [ location. block ] . terminator
844
850
{
845
851
let Some ( ( method_did, method_substs) ) =
@@ -859,7 +865,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
859
865
method_did,
860
866
method_substs,
861
867
* fn_span,
862
- * from_hir_call,
868
+ call_source . from_hir_call ( ) ,
863
869
Some ( self . infcx . tcx . fn_arg_names ( method_did) [ 0 ] ) ,
864
870
) ;
865
871
0 commit comments