@@ -309,7 +309,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
309
309
op ( & mut IsolatedEncoder :: new ( self ) , data)
310
310
}
311
311
312
- fn encode_info_for_items ( & mut self ) -> Index {
312
+ fn encode_info_for_items ( & mut self ) -> Index < ' tcx > {
313
313
let krate = self . tcx . hir ( ) . krate ( ) ;
314
314
let mut index = IndexBuilder :: new ( self ) ;
315
315
let vis = Spanned { span : syntax_pos:: DUMMY_SP , node : hir:: VisibilityKind :: Public } ;
@@ -371,7 +371,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
371
371
self . lazy_seq_ref ( adapted. iter ( ) . map ( |rc| & * * rc) )
372
372
}
373
373
374
- fn encode_crate_root ( & mut self ) -> Lazy < CrateRoot > {
374
+ fn encode_crate_root ( & mut self ) -> Lazy < CrateRoot < ' tcx > > {
375
375
let mut i = self . position ( ) ;
376
376
377
377
let crate_deps = self . tracked ( IsolatedEncoder :: encode_crate_deps, ( ) ) ;
@@ -1595,13 +1595,13 @@ impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx> {
1595
1595
// symbol associated with them (they weren't translated) or if they're an FFI
1596
1596
// definition (as that's not defined in this crate).
1597
1597
fn encode_exported_symbols ( & mut self ,
1598
- exported_symbols : & [ ( ExportedSymbol < ' _ > , SymbolExportLevel ) ] )
1599
- -> EncodedExportedSymbols {
1598
+ exported_symbols : & [ ( ExportedSymbol < ' tcx > , SymbolExportLevel ) ] )
1599
+ -> LazySeq < ( ExportedSymbol < ' tcx > , SymbolExportLevel ) > {
1600
1600
// The metadata symbol name is special. It should not show up in
1601
1601
// downstream crates.
1602
1602
let metadata_symbol_name = SymbolName :: new ( & metadata_symbol_name ( self . tcx ) ) ;
1603
1603
1604
- let lazy_seq = self . lazy_seq ( exported_symbols
1604
+ self . lazy_seq ( exported_symbols
1605
1605
. iter ( )
1606
1606
. filter ( |& & ( ref exported_symbol, _) | {
1607
1607
match * exported_symbol {
@@ -1611,12 +1611,7 @@ impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx> {
1611
1611
_ => true ,
1612
1612
}
1613
1613
} )
1614
- . cloned ( ) ) ;
1615
-
1616
- EncodedExportedSymbols {
1617
- len : lazy_seq. len ,
1618
- position : lazy_seq. position ,
1619
- }
1614
+ . cloned ( ) )
1620
1615
}
1621
1616
1622
1617
fn encode_dylib_dependency_formats ( & mut self , _: ( ) ) -> LazySeq < Option < LinkagePreference > > {
0 commit comments