@@ -309,7 +309,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
309309 op ( & mut IsolatedEncoder :: new ( self ) , data)
310310 }
311311
312- fn encode_info_for_items ( & mut self ) -> Index {
312+ fn encode_info_for_items ( & mut self ) -> Index < ' tcx > {
313313 let krate = self . tcx . hir ( ) . krate ( ) ;
314314 let mut index = IndexBuilder :: new ( self ) ;
315315 let vis = Spanned { span : syntax_pos:: DUMMY_SP , node : hir:: VisibilityKind :: Public } ;
@@ -371,7 +371,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
371371 self . lazy_seq_ref ( adapted. iter ( ) . map ( |rc| & * * rc) )
372372 }
373373
374- fn encode_crate_root ( & mut self ) -> Lazy < CrateRoot > {
374+ fn encode_crate_root ( & mut self ) -> Lazy < CrateRoot < ' tcx > > {
375375 let mut i = self . position ( ) ;
376376
377377 let crate_deps = self . tracked ( IsolatedEncoder :: encode_crate_deps, ( ) ) ;
@@ -1595,13 +1595,13 @@ impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx> {
15951595 // symbol associated with them (they weren't translated) or if they're an FFI
15961596 // definition (as that's not defined in this crate).
15971597 fn encode_exported_symbols ( & mut self ,
1598- exported_symbols : & [ ( ExportedSymbol < ' _ > , SymbolExportLevel ) ] )
1599- -> EncodedExportedSymbols {
1598+ exported_symbols : & [ ( ExportedSymbol < ' tcx > , SymbolExportLevel ) ] )
1599+ -> LazySeq < ( ExportedSymbol < ' tcx > , SymbolExportLevel ) > {
16001600 // The metadata symbol name is special. It should not show up in
16011601 // downstream crates.
16021602 let metadata_symbol_name = SymbolName :: new ( & metadata_symbol_name ( self . tcx ) ) ;
16031603
1604- let lazy_seq = self . lazy_seq ( exported_symbols
1604+ self . lazy_seq ( exported_symbols
16051605 . iter ( )
16061606 . filter ( |& & ( ref exported_symbol, _) | {
16071607 match * exported_symbol {
@@ -1611,12 +1611,7 @@ impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx> {
16111611 _ => true ,
16121612 }
16131613 } )
1614- . cloned ( ) ) ;
1615-
1616- EncodedExportedSymbols {
1617- len : lazy_seq. len ,
1618- position : lazy_seq. position ,
1619- }
1614+ . cloned ( ) )
16201615 }
16211616
16221617 fn encode_dylib_dependency_formats ( & mut self , _: ( ) ) -> LazySeq < Option < LinkagePreference > > {
0 commit comments