11use  rustc:: hir; 
22use  rustc:: hir:: def_id:: DefId ; 
3- use  rustc:: middle:: region:: ScopeTree ; 
43use  rustc:: mir:: { 
54    self ,  AggregateKind ,  BindingForm ,  BorrowKind ,  ClearCrossCrate ,  ConstraintCategory ,  Local , 
65    LocalDecl ,  LocalKind ,  Location ,  Operand ,  Place ,  PlaceBase ,  PlaceProjection , 
@@ -689,7 +688,6 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
689688        ) ; 
690689
691690        let  drop_span = place_span. 1 ; 
692-         let  scope_tree = self . infcx . tcx . region_scope_tree ( self . mir_def_id ) ; 
693691        let  root_place = self . prefixes ( & borrow. borrowed_place ,  PrefixSet :: All ) 
694692            . last ( ) 
695693            . unwrap ( ) ; 
@@ -791,15 +789,13 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
791789            ( Some ( name) ,  explanation)  => self . report_local_value_does_not_live_long_enough ( 
792790                location, 
793791                & name, 
794-                 & scope_tree, 
795792                & borrow, 
796793                drop_span, 
797794                borrow_spans, 
798795                explanation, 
799796            ) , 
800797            ( None ,  explanation)  => self . report_temporary_value_does_not_live_long_enough ( 
801798                location, 
802-                 & scope_tree, 
803799                & borrow, 
804800                drop_span, 
805801                borrow_spans, 
@@ -815,17 +811,16 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
815811        & mut  self , 
816812        location :  Location , 
817813        name :  & str , 
818-         scope_tree :  & ' tcx  ScopeTree , 
819814        borrow :  & BorrowData < ' tcx > , 
820815        drop_span :  Span , 
821816        borrow_spans :  UseSpans , 
822817        explanation :  BorrowExplanation , 
823818    )  -> DiagnosticBuilder < ' cx >  { 
824819        debug ! ( 
825820            "report_local_value_does_not_live_long_enough(\  
826-               {:?}, {:?}, {:?}, {:?}, {:?}, {:?} \ 
821+               {:?}, {:?}, {:?}, {:?}, {:?}\ 
827822              )", 
828-             location,  name,  scope_tree ,   borrow,  drop_span,  borrow_spans
823+             location,  name,  borrow,  drop_span,  borrow_spans
829824        ) ; 
830825
831826        let  borrow_span = borrow_spans. var_or_use ( ) ; 
@@ -1007,7 +1002,6 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
10071002    fn  report_temporary_value_does_not_live_long_enough ( 
10081003        & mut  self , 
10091004        location :  Location , 
1010-         scope_tree :  & ' tcx  ScopeTree , 
10111005        borrow :  & BorrowData < ' tcx > , 
10121006        drop_span :  Span , 
10131007        borrow_spans :  UseSpans , 
@@ -1016,9 +1010,9 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
10161010    )  -> DiagnosticBuilder < ' cx >  { 
10171011        debug ! ( 
10181012            "report_temporary_value_does_not_live_long_enough(\  
1019-               {:?}, {:?}, {:?}, {:?}, {:?} \ 
1013+               {:?}, {:?}, {:?}, {:?}\ 
10201014              )", 
1021-             location,  scope_tree ,   borrow,  drop_span,  proper_span
1015+             location,  borrow,  drop_span,  proper_span
10221016        ) ; 
10231017
10241018        if  let  BorrowExplanation :: MustBeValidFor  { 
0 commit comments