@@ -15,7 +15,6 @@ use rustc_middle::ty::fast_reject::SimplifiedType;
1515use rustc_middle:: ty:: query:: { ExternProviders , Providers } ;
1616use rustc_middle:: ty:: { self , TyCtxt , Visibility } ;
1717use rustc_session:: cstore:: { CrateSource , CrateStore } ;
18- use rustc_session:: utils:: NativeLibKind ;
1918use rustc_session:: { Session , StableCrateId } ;
2019use rustc_span:: hygiene:: { ExpnHash , ExpnId } ;
2120use rustc_span:: source_map:: { Span , Spanned } ;
@@ -339,20 +338,10 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
339338 // resolve! Does this work? Unsure! That's what the issue is about
340339 * providers = Providers {
341340 allocator_kind : |tcx, ( ) | CStore :: from_tcx ( tcx) . allocator_kind ( ) ,
342- is_dllimport_foreign_item : |tcx, id| match tcx. native_library_kind ( id) {
343- Some (
344- NativeLibKind :: Dylib { .. } | NativeLibKind :: RawDylib | NativeLibKind :: Unspecified ,
345- ) => true ,
346- _ => false ,
347- } ,
348- is_statically_included_foreign_item : |tcx, id| {
349- matches ! ( tcx. native_library_kind( id) , Some ( NativeLibKind :: Static { .. } ) )
350- } ,
351341 is_private_dep : |_tcx, cnum| {
352342 assert_eq ! ( cnum, LOCAL_CRATE ) ;
353343 false
354344 } ,
355- native_library_kind : |tcx, id| tcx. native_library ( id) . map ( |l| l. kind ) ,
356345 native_library : |tcx, id| {
357346 tcx. native_libraries ( id. krate )
358347 . iter ( )
0 commit comments