@@ -132,8 +132,8 @@ impl<'a, 'tcx> Metadata<'a, 'tcx> for (&'a CrateMetadata, TyCtxt<'tcx>) {
132
132
}
133
133
134
134
impl < ' a , ' tcx , T : Encodable + Decodable > Lazy < T > {
135
- crate fn decode < M : Metadata < ' a , ' tcx > > ( self , meta : M ) -> T {
136
- let mut dcx = meta . decoder ( self . position . get ( ) ) ;
135
+ crate fn decode < M : Metadata < ' a , ' tcx > > ( self , metadata : M ) -> T {
136
+ let mut dcx = metadata . decoder ( self . position . get ( ) ) ;
137
137
dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
138
138
T :: decode ( & mut dcx) . unwrap ( )
139
139
}
@@ -142,9 +142,9 @@ impl<'a, 'tcx, T: Encodable + Decodable> Lazy<T> {
142
142
impl < ' a : ' x , ' tcx : ' x , ' x , T : Encodable + Decodable > Lazy < [ T ] > {
143
143
crate fn decode < M : Metadata < ' a , ' tcx > > (
144
144
self ,
145
- meta : M ,
145
+ metadata : M ,
146
146
) -> impl ExactSizeIterator < Item = T > + Captures < ' a > + Captures < ' tcx > + ' x {
147
- let mut dcx = meta . decoder ( self . position . get ( ) ) ;
147
+ let mut dcx = metadata . decoder ( self . position . get ( ) ) ;
148
148
dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
149
149
( 0 ..self . meta ) . map ( move |_| T :: decode ( & mut dcx) . unwrap ( ) )
150
150
}
@@ -481,7 +481,7 @@ impl<'a, 'tcx> CrateMetadata {
481
481
}
482
482
483
483
fn maybe_entry ( & self , item_id : DefIndex ) -> Option < Lazy < Entry < ' tcx > > > {
484
- self . root . per_def . entry . get ( self . blob . raw_bytes ( ) , item_id)
484
+ self . root . per_def . entry . get ( self , item_id)
485
485
}
486
486
487
487
fn entry ( & self , item_id : DefIndex ) -> Entry < ' tcx > {
0 commit comments