@@ -132,8 +132,8 @@ impl<'a, 'tcx> Metadata<'a, 'tcx> for (&'a CrateMetadata, TyCtxt<'tcx>) {
132132}
133133
134134impl < ' 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 ( ) ) ;
137137 dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
138138 T :: decode ( & mut dcx) . unwrap ( )
139139 }
@@ -142,9 +142,9 @@ impl<'a, 'tcx, T: Encodable + Decodable> Lazy<T> {
142142impl < ' a : ' x , ' tcx : ' x , ' x , T : Encodable + Decodable > Lazy < [ T ] > {
143143 crate fn decode < M : Metadata < ' a , ' tcx > > (
144144 self ,
145- meta : M ,
145+ metadata : M ,
146146 ) -> 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 ( ) ) ;
148148 dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
149149 ( 0 ..self . meta ) . map ( move |_| T :: decode ( & mut dcx) . unwrap ( ) )
150150 }
@@ -481,7 +481,7 @@ impl<'a, 'tcx> CrateMetadata {
481481 }
482482
483483 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)
485485 }
486486
487487 fn entry ( & self , item_id : DefIndex ) -> Entry < ' tcx > {
0 commit comments