@@ -13,6 +13,7 @@ use rustc_middle::arena::ArenaAllocatable;
1313use rustc_middle:: metadata:: ModChild ;
1414use rustc_middle:: middle:: exported_symbols:: ExportedSymbol ;
1515use rustc_middle:: middle:: stability:: DeprecationEntry ;
16+ use rustc_middle:: query:: LocalCrate ;
1617use rustc_middle:: ty:: fast_reject:: SimplifiedType ;
1718use rustc_middle:: ty:: query:: { ExternProviders , Providers } ;
1819use rustc_middle:: ty:: { self , TyCtxt } ;
@@ -367,7 +368,7 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
367368 * providers = Providers {
368369 allocator_kind : |tcx, ( ) | CStore :: from_tcx ( tcx) . allocator_kind ( ) ,
369370 alloc_error_handler_kind : |tcx, ( ) | CStore :: from_tcx ( tcx) . alloc_error_handler_kind ( ) ,
370- is_private_dep : |_tcx, ( ) | false ,
371+ is_private_dep : |_tcx, LocalCrate | false ,
371372 native_library : |tcx, id| {
372373 tcx. native_libraries ( id. krate )
373374 . iter ( )
@@ -383,8 +384,8 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
383384 . contains ( & id)
384385 } )
385386 } ,
386- native_libraries : |tcx, ( ) | native_libs:: collect ( tcx) ,
387- foreign_modules : |tcx, ( ) | {
387+ native_libraries : |tcx, LocalCrate | native_libs:: collect ( tcx) ,
388+ foreign_modules : |tcx, LocalCrate | {
388389 foreign_modules:: collect ( tcx) . into_iter ( ) . map ( |m| ( m. def_id , m) ) . collect ( )
389390 } ,
390391
@@ -482,8 +483,8 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
482483 } ,
483484
484485 dependency_formats : |tcx, ( ) | Lrc :: new ( crate :: dependency_format:: calculate ( tcx) ) ,
485- has_global_allocator : |tcx, ( ) | CStore :: from_tcx ( tcx) . has_global_allocator ( ) ,
486- has_alloc_error_handler : |tcx, ( ) | CStore :: from_tcx ( tcx) . has_alloc_error_handler ( ) ,
486+ has_global_allocator : |tcx, LocalCrate | CStore :: from_tcx ( tcx) . has_global_allocator ( ) ,
487+ has_alloc_error_handler : |tcx, LocalCrate | CStore :: from_tcx ( tcx) . has_alloc_error_handler ( ) ,
487488 postorder_cnums : |tcx, ( ) | {
488489 tcx. arena
489490 . alloc_slice ( & CStore :: from_tcx ( tcx) . crate_dependencies_in_postorder ( LOCAL_CRATE ) )
0 commit comments