@@ -363,7 +363,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
363
363
consume_span : Span ,
364
364
cmt : mc:: cmt < ' tcx > ) {
365
365
debug ! ( "delegate_consume(consume_id={}, cmt={})" ,
366
- consume_id, cmt. repr( self . tcx ( ) ) ) ;
366
+ consume_id, cmt. repr( ) ) ;
367
367
368
368
let mode = copy_or_move ( self . typer , & cmt, DirectRefMove ) ;
369
369
self . delegate . consume ( consume_id, consume_span, cmt, mode) ;
@@ -376,7 +376,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
376
376
}
377
377
378
378
pub fn consume_expr ( & mut self , expr : & ast:: Expr ) {
379
- debug ! ( "consume_expr(expr={})" , expr. repr( self . tcx ( ) ) ) ;
379
+ debug ! ( "consume_expr(expr={})" , expr. repr( ) ) ;
380
380
381
381
let cmt = return_if_err ! ( self . mc. cat_expr( expr) ) ;
382
382
self . delegate_consume ( expr. id , expr. span , cmt) ;
@@ -398,7 +398,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
398
398
bk : ty:: BorrowKind ,
399
399
cause : LoanCause ) {
400
400
debug ! ( "borrow_expr(expr={}, r={}, bk={})" ,
401
- expr. repr( self . tcx ( ) ) , r. repr( self . tcx ( ) ) , bk. repr( self . tcx ( ) ) ) ;
401
+ expr. repr( ) , r. repr( ) , bk. repr( ) ) ;
402
402
403
403
let cmt = return_if_err ! ( self . mc. cat_expr( expr) ) ;
404
404
self . delegate . borrow ( expr. id , expr. span , cmt, r, bk, cause) ;
@@ -414,7 +414,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
414
414
}
415
415
416
416
pub fn walk_expr ( & mut self , expr : & ast:: Expr ) {
417
- debug ! ( "walk_expr(expr={})" , expr. repr( self . tcx ( ) ) ) ;
417
+ debug ! ( "walk_expr(expr={})" , expr. repr( ) ) ;
418
418
419
419
self . walk_adjustment ( expr) ;
420
420
@@ -619,7 +619,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
619
619
fn walk_callee ( & mut self , call : & ast:: Expr , callee : & ast:: Expr ) {
620
620
let callee_ty = return_if_err ! ( self . typer. expr_ty_adjusted( callee) ) ;
621
621
debug ! ( "walk_callee: callee={} callee_ty={}" ,
622
- callee. repr( self . tcx ( ) ) , callee_ty. repr( self . tcx ( ) ) ) ;
622
+ callee. repr( ) , callee_ty. repr( ) ) ;
623
623
let call_scope = region:: CodeExtent :: from_node_id ( call. id ) ;
624
624
match callee_ty. sty {
625
625
ty:: TyBareFn ( ..) => {
@@ -637,7 +637,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
637
637
None => {
638
638
self . tcx ( ) . sess . span_bug (
639
639
callee. span ,
640
- & format ! ( "unexpected callee type {}" , callee_ty. repr( self . tcx ( ) ) ) )
640
+ & format ! ( "unexpected callee type {}" , callee_ty. repr( ) ) )
641
641
}
642
642
} ;
643
643
match overloaded_call_type {
@@ -811,7 +811,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
811
811
fn walk_autoderefs ( & mut self ,
812
812
expr : & ast:: Expr ,
813
813
autoderefs : usize ) {
814
- debug ! ( "walk_autoderefs expr={} autoderefs={}" , expr. repr( self . tcx ( ) ) , autoderefs) ;
814
+ debug ! ( "walk_autoderefs expr={} autoderefs={}" , expr. repr( ) , autoderefs) ;
815
815
816
816
for i in 0 ..autoderefs {
817
817
let deref_id = ty:: MethodCall :: autoderef ( expr. id , i as u32 ) ;
@@ -829,7 +829,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
829
829
ty:: TyRef ( r, ref m) => ( m. mutbl , r) ,
830
830
_ => self . tcx ( ) . sess . span_bug ( expr. span ,
831
831
& format ! ( "bad overloaded deref type {}" ,
832
- method_ty. repr( self . tcx ( ) ) ) )
832
+ method_ty. repr( ) ) )
833
833
} ;
834
834
let bk = ty:: BorrowKind :: from_mutbl ( m) ;
835
835
self . delegate . borrow ( expr. id , expr. span , cmt,
@@ -843,8 +843,8 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
843
843
expr : & ast:: Expr ,
844
844
adj : & ty:: AutoDerefRef < ' tcx > ) {
845
845
debug ! ( "walk_autoderefref expr={} adj={}" ,
846
- expr. repr( self . tcx ( ) ) ,
847
- adj. repr( self . tcx ( ) ) ) ;
846
+ expr. repr( ) ,
847
+ adj. repr( ) ) ;
848
848
849
849
self . walk_autoderefs ( expr, adj. autoderefs ) ;
850
850
@@ -877,7 +877,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
877
877
{
878
878
debug ! ( "walk_autoref(expr.id={} cmt_derefd={} opt_autoref={:?})" ,
879
879
expr. id,
880
- cmt_base. repr( self . tcx ( ) ) ,
880
+ cmt_base. repr( ) ,
881
881
opt_autoref) ;
882
882
883
883
let cmt_base_ty = cmt_base. ty ;
@@ -903,7 +903,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
903
903
ty:: AutoUnsafe ( m) => {
904
904
debug ! ( "walk_autoref: expr.id={} cmt_base={}" ,
905
905
expr. id,
906
- cmt_base. repr( self . tcx ( ) ) ) ;
906
+ cmt_base. repr( ) ) ;
907
907
908
908
// Converting from a &T to *T (or &mut T to *mut T) is
909
909
// treated as borrowing it for the enclosing temporary
@@ -1011,8 +1011,8 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1011
1011
cmt_discr : mc:: cmt < ' tcx > ,
1012
1012
pat : & ast:: Pat ,
1013
1013
mode : & mut TrackMatchMode ) {
1014
- debug ! ( "determine_pat_move_mode cmt_discr={} pat={}" , cmt_discr. repr( self . tcx ( ) ) ,
1015
- pat. repr( self . tcx ( ) ) ) ;
1014
+ debug ! ( "determine_pat_move_mode cmt_discr={} pat={}" , cmt_discr. repr( ) ,
1015
+ pat. repr( ) ) ;
1016
1016
return_if_err ! ( self . mc. cat_pattern( cmt_discr, pat, |_mc, cmt_pat, pat| {
1017
1017
let tcx = self . tcx( ) ;
1018
1018
let def_map = & self . tcx( ) . def_map;
@@ -1043,8 +1043,8 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1043
1043
cmt_discr : mc:: cmt < ' tcx > ,
1044
1044
pat : & ast:: Pat ,
1045
1045
match_mode : MatchMode ) {
1046
- debug ! ( "walk_pat cmt_discr={} pat={}" , cmt_discr. repr( self . tcx ( ) ) ,
1047
- pat. repr( self . tcx ( ) ) ) ;
1046
+ debug ! ( "walk_pat cmt_discr={} pat={}" , cmt_discr. repr( ) ,
1047
+ pat. repr( ) ) ;
1048
1048
1049
1049
let mc = & self . mc ;
1050
1050
let typer = self . typer ;
@@ -1055,8 +1055,8 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1055
1055
let tcx = typer. tcx( ) ;
1056
1056
1057
1057
debug!( "binding cmt_pat={} pat={} match_mode={:?}" ,
1058
- cmt_pat. repr( tcx ) ,
1059
- pat. repr( tcx ) ,
1058
+ cmt_pat. repr( ) ,
1059
+ pat. repr( ) ,
1060
1060
match_mode) ;
1061
1061
1062
1062
// pat_ty: the type of the binding being produced.
@@ -1161,8 +1161,8 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1161
1161
} ;
1162
1162
1163
1163
debug!( "variant downcast_cmt={} pat={}" ,
1164
- downcast_cmt. repr( tcx ) ,
1165
- pat. repr( tcx ) ) ;
1164
+ downcast_cmt. repr( ) ,
1165
+ pat. repr( ) ) ;
1166
1166
1167
1167
delegate. matched_pat( pat, downcast_cmt, match_mode) ;
1168
1168
}
@@ -1173,8 +1173,8 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1173
1173
// e.g. patterns for unit structs).
1174
1174
1175
1175
debug!( "struct cmt_pat={} pat={}" ,
1176
- cmt_pat. repr( tcx ) ,
1177
- pat. repr( tcx ) ) ;
1176
+ cmt_pat. repr( ) ,
1177
+ pat. repr( ) ) ;
1178
1178
1179
1179
delegate. matched_pat( pat, cmt_pat, match_mode) ;
1180
1180
}
@@ -1194,7 +1194,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1194
1194
if !tcx. sess. has_errors( ) {
1195
1195
let msg = format!( "Pattern has unexpected type: {:?} and type {}" ,
1196
1196
def,
1197
- cmt_pat. ty. repr( tcx ) ) ;
1197
+ cmt_pat. ty. repr( ) ) ;
1198
1198
tcx. sess. span_bug( pat. span, & msg)
1199
1199
}
1200
1200
}
@@ -1211,7 +1211,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1211
1211
if !tcx. sess. has_errors( ) {
1212
1212
let msg = format!( "Pattern has unexpected def: {:?} and type {}" ,
1213
1213
def,
1214
- cmt_pat. ty. repr( tcx ) ) ;
1214
+ cmt_pat. ty. repr( ) ) ;
1215
1215
tcx. sess. span_bug( pat. span, & msg[ ..] )
1216
1216
}
1217
1217
}
@@ -1237,7 +1237,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
1237
1237
}
1238
1238
1239
1239
fn walk_captures ( & mut self , closure_expr : & ast:: Expr ) {
1240
- debug ! ( "walk_captures({})" , closure_expr. repr( self . tcx ( ) ) ) ;
1240
+ debug ! ( "walk_captures({})" , closure_expr. repr( ) ) ;
1241
1241
1242
1242
ty:: with_freevars ( self . tcx ( ) , closure_expr. id , |freevars| {
1243
1243
for freevar in freevars {
0 commit comments