@@ -15,7 +15,6 @@ use rustc_middle::ty::fast_reject::SimplifiedType;
15
15
use rustc_middle:: ty:: query:: { ExternProviders , Providers } ;
16
16
use rustc_middle:: ty:: { self , TyCtxt , Visibility } ;
17
17
use rustc_session:: cstore:: { CrateSource , CrateStore } ;
18
- use rustc_session:: utils:: NativeLibKind ;
19
18
use rustc_session:: { Session , StableCrateId } ;
20
19
use rustc_span:: hygiene:: { ExpnHash , ExpnId } ;
21
20
use rustc_span:: source_map:: { Span , Spanned } ;
@@ -339,20 +338,10 @@ pub(in crate::rmeta) fn provide(providers: &mut Providers) {
339
338
// resolve! Does this work? Unsure! That's what the issue is about
340
339
* providers = Providers {
341
340
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
- } ,
351
341
is_private_dep : |_tcx, cnum| {
352
342
assert_eq ! ( cnum, LOCAL_CRATE ) ;
353
343
false
354
344
} ,
355
- native_library_kind : |tcx, id| tcx. native_library ( id) . map ( |l| l. kind ) ,
356
345
native_library : |tcx, id| {
357
346
tcx. native_libraries ( id. krate )
358
347
. iter ( )
0 commit comments