@@ -130,8 +130,8 @@ impl<'a, 'tcx> Metadata<'a, 'tcx> for (&'a CrateMetadata, TyCtxt<'a, 'tcx, 'tcx>
130
130
}
131
131
132
132
impl < ' 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 ( ) ) ;
135
135
dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
136
136
T :: decode ( & mut dcx) . unwrap ( )
137
137
}
@@ -140,9 +140,9 @@ impl<'a, 'tcx: 'a, T: Encodable + Decodable> Lazy<T> {
140
140
impl < ' a , ' tcx : ' a , T : Encodable + Decodable > Lazy < [ T ] > {
141
141
pub fn decode < M : Metadata < ' a , ' tcx > > (
142
142
self ,
143
- meta : M ,
143
+ metadata : M ,
144
144
) -> 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 ( ) ) ;
146
146
dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
147
147
( 0 ..self . meta ) . map ( move |_| T :: decode ( & mut dcx) . unwrap ( ) )
148
148
}
@@ -498,7 +498,7 @@ impl<'a, 'tcx> CrateMetadata {
498
498
499
499
fn maybe_entry ( & self , item_id : DefIndex ) -> Option < Lazy < Entry < ' tcx > > > {
500
500
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)
502
502
}
503
503
504
504
fn entry ( & self , item_id : DefIndex ) -> Entry < ' tcx > {
0 commit comments