@@ -169,7 +169,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
169
169
} ;
170
170
self . fmt . sub_mod_ref_str ( path. span ,
171
171
* span,
172
- & qualname[ .. ] ,
172
+ & qualname,
173
173
self . cur_scope ) ;
174
174
}
175
175
}
@@ -192,7 +192,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
192
192
} ;
193
193
self . fmt . sub_mod_ref_str ( path. span ,
194
194
* span,
195
- & qualname[ .. ] ,
195
+ & qualname,
196
196
self . cur_scope ) ;
197
197
}
198
198
}
@@ -211,7 +211,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
211
211
let ( ref span, ref qualname) = sub_paths[ len-2 ] ;
212
212
self . fmt . sub_type_ref_str ( path. span ,
213
213
* span,
214
- & qualname[ .. ] ) ;
214
+ & qualname) ;
215
215
216
216
// write the other sub-paths
217
217
if len <= 2 {
@@ -221,7 +221,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
221
221
for & ( ref span, ref qualname) in sub_paths {
222
222
self . fmt . sub_mod_ref_str ( path. span ,
223
223
* span,
224
- & qualname[ .. ] ,
224
+ & qualname,
225
225
self . cur_scope ) ;
226
226
}
227
227
}
@@ -293,7 +293,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
293
293
id,
294
294
qualname,
295
295
& path_to_string ( p) ,
296
- & typ[ .. ] ) ;
296
+ & typ) ;
297
297
}
298
298
}
299
299
}
@@ -451,9 +451,9 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
451
451
Some ( sub_span) => self . fmt . field_str ( field. span ,
452
452
Some ( sub_span) ,
453
453
field. node . id ,
454
- & name[ .. ] ,
455
- & qualname[ .. ] ,
456
- & typ[ .. ] ,
454
+ & name,
455
+ & qualname,
456
+ & typ,
457
457
scope_id) ,
458
458
None => self . sess . span_bug ( field. span ,
459
459
& format ! ( "Could not find sub-span for field {}" ,
@@ -485,7 +485,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
485
485
self . fmt . typedef_str ( full_span,
486
486
Some ( * param_ss) ,
487
487
param. id ,
488
- & name[ .. ] ,
488
+ & name,
489
489
"" ) ;
490
490
}
491
491
self . visit_generics ( generics) ;
@@ -561,7 +561,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
561
561
sub_span,
562
562
id,
563
563
& get_ident ( ( * ident) . clone ( ) ) ,
564
- & qualname[ .. ] ,
564
+ & qualname,
565
565
& self . span . snippet ( expr. span ) ,
566
566
& ty_to_string ( & * typ) ,
567
567
self . cur_scope ) ;
@@ -587,17 +587,17 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
587
587
sub_span,
588
588
item. id ,
589
589
ctor_id,
590
- & qualname[ .. ] ,
590
+ & qualname,
591
591
self . cur_scope ,
592
- & val[ .. ] ) ;
592
+ & val) ;
593
593
594
594
// fields
595
595
for field in & def. fields {
596
- self . process_struct_field_def ( field, & qualname[ .. ] , item. id ) ;
596
+ self . process_struct_field_def ( field, & qualname, item. id ) ;
597
597
self . visit_ty ( & * field. node . ty ) ;
598
598
}
599
599
600
- self . process_generic_params ( ty_params, item. span , & qualname[ .. ] , item. id ) ;
600
+ self . process_generic_params ( ty_params, item. span , & qualname, item. id ) ;
601
601
}
602
602
603
603
fn process_enum ( & mut self ,
@@ -722,9 +722,9 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
722
722
self . fmt . trait_str ( item. span ,
723
723
sub_span,
724
724
item. id ,
725
- & qualname[ .. ] ,
725
+ & qualname,
726
726
self . cur_scope ,
727
- & val[ .. ] ) ;
727
+ & val) ;
728
728
729
729
// super-traits
730
730
for super_bound in & * * trait_refs {
@@ -756,7 +756,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
756
756
}
757
757
758
758
// walk generics and methods
759
- self . process_generic_params ( generics, item. span , & qualname[ .. ] , item. id ) ;
759
+ self . process_generic_params ( generics, item. span , & qualname, item. id ) ;
760
760
for method in methods {
761
761
self . visit_trait_item ( method)
762
762
}
@@ -996,7 +996,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
996
996
self . cur_scope ) ;
997
997
998
998
// walk receiver and args
999
- visit:: walk_exprs ( self , & args[ .. ] ) ;
999
+ visit:: walk_exprs ( self , & args) ;
1000
1000
}
1001
1001
1002
1002
fn process_pat ( & mut self , p : & ast:: Pat ) {
@@ -1155,7 +1155,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1155
1155
item. id ,
1156
1156
cnum,
1157
1157
name,
1158
- & location[ .. ] ,
1158
+ & location,
1159
1159
self . cur_scope ) ;
1160
1160
}
1161
1161
ast:: ItemFn ( ref decl, _, _, _, ref ty_params, ref body) =>
@@ -1190,8 +1190,8 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1190
1190
self . fmt . typedef_str ( item. span ,
1191
1191
sub_span,
1192
1192
item. id ,
1193
- & qualname[ .. ] ,
1194
- & value[ .. ] ) ;
1193
+ & qualname,
1194
+ & value) ;
1195
1195
1196
1196
self . visit_ty ( & * * ty) ;
1197
1197
self . process_generic_params ( ty_params, item. span , & qualname, item. id ) ;
@@ -1343,7 +1343,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1343
1343
1344
1344
let mut id = String :: from_str ( "$" ) ;
1345
1345
id. push_str ( & ex. id . to_string ( ) ) ;
1346
- self . process_formals ( & decl. inputs , & id[ .. ] ) ;
1346
+ self . process_formals ( & decl. inputs , & id) ;
1347
1347
1348
1348
// walk arg and return types
1349
1349
for arg in & decl. inputs {
@@ -1403,7 +1403,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1403
1403
Some ( p. span ) ,
1404
1404
id,
1405
1405
& path_to_string ( p) ,
1406
- & value[ .. ] ,
1406
+ & value,
1407
1407
"" )
1408
1408
}
1409
1409
def:: DefVariant ( ..) | def:: DefTy ( ..) | def:: DefStruct ( ..) => {
@@ -1461,8 +1461,8 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1461
1461
sub_span,
1462
1462
id,
1463
1463
& path_to_string ( p) ,
1464
- & value[ .. ] ,
1465
- & typ[ .. ] ) ;
1464
+ & value,
1465
+ & typ) ;
1466
1466
}
1467
1467
1468
1468
// Just walk the initialiser and type (don't want to walk the pattern again).
0 commit comments