@@ -130,8 +130,8 @@ impl<'a, 'tcx> Metadata<'a, 'tcx> for (&'a CrateMetadata, TyCtxt<'a, 'tcx, 'tcx>
130130}
131131
132132impl < ' a , ' tcx : ' a , T : Encodable + Decodable > Lazy < T > {
133- pub fn decode < M : Metadata < ' a , ' tcx > > ( self , meta : M ) -> T {
134- let mut dcx = meta . decoder ( self . position . get ( ) ) ;
133+ pub fn decode < M : Metadata < ' a , ' tcx > > ( self , metadata : M ) -> T {
134+ let mut dcx = metadata . decoder ( self . position . get ( ) ) ;
135135 dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
136136 T :: decode ( & mut dcx) . unwrap ( )
137137 }
@@ -140,9 +140,9 @@ impl<'a, 'tcx: 'a, T: Encodable + Decodable> Lazy<T> {
140140impl < ' a , ' tcx : ' a , T : Encodable + Decodable > Lazy < [ T ] > {
141141 pub fn decode < M : Metadata < ' a , ' tcx > > (
142142 self ,
143- meta : M ,
143+ metadata : M ,
144144 ) -> impl Iterator < Item = T > + Captures < ' tcx > + ' a {
145- let mut dcx = meta . decoder ( self . position . get ( ) ) ;
145+ let mut dcx = metadata . decoder ( self . position . get ( ) ) ;
146146 dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
147147 ( 0 ..self . meta ) . map ( move |_| T :: decode ( & mut dcx) . unwrap ( ) )
148148 }
@@ -498,7 +498,7 @@ impl<'a, 'tcx> CrateMetadata {
498498
499499 fn maybe_entry ( & self , item_id : DefIndex ) -> Option < Lazy < Entry < ' tcx > > > {
500500 assert ! ( !self . is_proc_macro( item_id) ) ;
501- self . root . per_def . entry . get ( self . blob . raw_bytes ( ) , item_id)
501+ self . root . per_def . entry . get ( self , item_id)
502502 }
503503
504504 fn entry ( & self , item_id : DefIndex ) -> Entry < ' tcx > {
0 commit comments