@@ -54,7 +54,7 @@ use rustc::hir::intravisit::Visitor;
54
54
use rustc:: hir:: intravisit;
55
55
use rustc:: hir:: map:: DefKey ;
56
56
57
- use super :: index_builder:: { IndexBuilder , XRef } ;
57
+ use super :: index_builder:: { IndexBuilder , ItemContentBuilder , XRef } ;
58
58
59
59
pub struct EncodeContext < ' a , ' tcx : ' a > {
60
60
pub diag : & ' a Handler ,
@@ -132,7 +132,7 @@ fn encode_item_variances(rbml_w: &mut Encoder,
132
132
rbml_w. end_tag ( ) ;
133
133
}
134
134
135
- impl < ' a , ' tcx > IndexBuilder < ' a , ' tcx > {
135
+ impl < ' a , ' tcx > ItemContentBuilder < ' a , ' tcx > {
136
136
fn encode_bounds_and_type_for_item ( & mut self ,
137
137
rbml_w : & mut Encoder ,
138
138
id : NodeId ) {
@@ -164,7 +164,7 @@ fn write_closure_type<'a, 'tcx>(ecx: &EncodeContext<'a, 'tcx>,
164
164
rbml_w. mark_stable_position ( ) ;
165
165
}
166
166
167
- impl < ' a , ' tcx > IndexBuilder < ' a , ' tcx > {
167
+ impl < ' a , ' tcx > ItemContentBuilder < ' a , ' tcx > {
168
168
fn encode_type ( & mut self ,
169
169
rbml_w : & mut Encoder ,
170
170
typ : Ty < ' tcx > ) {
@@ -200,7 +200,9 @@ impl<'a, 'tcx> IndexBuilder<'a, 'tcx> {
200
200
rbml_w. end_tag ( ) ;
201
201
}
202
202
}
203
+ }
203
204
205
+ impl < ' a , ' tcx > IndexBuilder < ' a , ' tcx > {
204
206
fn encode_enum_variant_info ( & mut self ,
205
207
rbml_w : & mut Encoder ,
206
208
did : DefId ,
@@ -302,7 +304,7 @@ fn encode_reexports(ecx: &EncodeContext,
302
304
}
303
305
}
304
306
305
- impl < ' a , ' tcx > IndexBuilder < ' a , ' tcx > {
307
+ impl < ' a , ' tcx > ItemContentBuilder < ' a , ' tcx > {
306
308
fn encode_info_for_mod ( & mut self ,
307
309
rbml_w : & mut Encoder ,
308
310
md : & hir:: Mod ,
@@ -487,7 +489,9 @@ impl<'a, 'tcx> IndexBuilder<'a, 'tcx> {
487
489
488
490
rbml_w. end_tag ( ) ;
489
491
}
492
+ }
490
493
494
+ impl < ' a , ' tcx > ItemContentBuilder < ' a , ' tcx > {
491
495
fn encode_generics ( & mut self ,
492
496
rbml_w : & mut Encoder ,
493
497
generics : & ty:: Generics < ' tcx > ,
@@ -532,7 +536,9 @@ impl<'a, 'tcx> IndexBuilder<'a, 'tcx> {
532
536
_ => encode_family ( rbml_w, METHOD_FAMILY )
533
537
}
534
538
}
539
+ }
535
540
541
+ impl < ' a , ' tcx > IndexBuilder < ' a , ' tcx > {
536
542
fn encode_info_for_associated_const ( & mut self ,
537
543
rbml_w : & mut Encoder ,
538
544
associated_const : & ty:: AssociatedConst ,
@@ -680,7 +686,9 @@ impl<'a, 'tcx> IndexBuilder<'a, 'tcx> {
680
686
}
681
687
rbml_w. end_tag ( ) ;
682
688
}
689
+ }
683
690
691
+ impl < ' a , ' tcx > ItemContentBuilder < ' a , ' tcx > {
684
692
fn encode_repr_attrs ( & mut self ,
685
693
rbml_w : & mut Encoder ,
686
694
attrs : & [ ast:: Attribute ] ) {
@@ -1237,9 +1245,7 @@ impl<'a, 'tcx> IndexBuilder<'a, 'tcx> {
1237
1245
}
1238
1246
}
1239
1247
}
1240
- }
1241
1248
1242
- impl < ' a , ' tcx > IndexBuilder < ' a , ' tcx > {
1243
1249
fn encode_info_for_foreign_item ( & mut self ,
1244
1250
rbml_w : & mut Encoder ,
1245
1251
nitem : & hir:: ForeignItem ) {
0 commit comments