@@ -11,7 +11,9 @@ use rustc_middle::middle::exported_symbols::{
1111 ExportedSymbol , SymbolExportInfo , SymbolExportKind , SymbolExportLevel ,
1212} ;
1313use rustc_middle:: query:: LocalCrate ;
14- use rustc_middle:: ty:: { self , GenericArgKind , GenericArgsRef , Instance , SymbolName , Ty , TyCtxt } ;
14+ use rustc_middle:: ty:: {
15+ self , GenericArgKind , GenericArgsRef , Instance , ShimKind , SymbolName , Ty , TyCtxt ,
16+ } ;
1517use rustc_middle:: util:: Providers ;
1618use rustc_session:: config:: CrateType ;
1719use rustc_span:: Span ;
@@ -332,7 +334,10 @@ fn exported_generic_symbols_provider_local<'tcx>(
332334 ) ) ;
333335 }
334336 }
335- MonoItem :: Fn ( Instance { def : InstanceKind :: DropGlue ( _, Some ( ty) ) , args } ) => {
337+ MonoItem :: Fn ( Instance {
338+ def : InstanceKind :: Shim ( ShimKind :: DropGlue ( _, Some ( ty) ) ) ,
339+ args,
340+ } ) => {
336341 // A little sanity-check
337342 assert_eq ! ( args. non_erasable_generics( ) . next( ) , Some ( GenericArgKind :: Type ( ty) ) ) ;
338343
@@ -356,7 +361,7 @@ fn exported_generic_symbols_provider_local<'tcx>(
356361 }
357362 }
358363 MonoItem :: Fn ( Instance {
359- def : InstanceKind :: AsyncDropGlueCtorShim ( _, ty) ,
364+ def : InstanceKind :: Shim ( ShimKind :: AsyncDropGlueCtor ( _, ty) ) ,
360365 args,
361366 } ) => {
362367 // A little sanity-check
@@ -371,7 +376,10 @@ fn exported_generic_symbols_provider_local<'tcx>(
371376 } ,
372377 ) ) ;
373378 }
374- MonoItem :: Fn ( Instance { def : InstanceKind :: AsyncDropGlue ( def, ty) , args : _ } ) => {
379+ MonoItem :: Fn ( Instance {
380+ def : InstanceKind :: Shim ( ShimKind :: AsyncDropGlue ( def, ty) ) ,
381+ args : _,
382+ } ) => {
375383 symbols. push ( (
376384 ExportedSymbol :: AsyncDropGlue ( def, ty) ,
377385 SymbolExportInfo {
@@ -578,7 +586,7 @@ pub(crate) fn symbol_name_for_instance_in_crate<'tcx>(
578586 rustc_symbol_mangling:: symbol_name_for_instance_in_crate (
579587 tcx,
580588 ty:: Instance {
581- def : ty:: InstanceKind :: ThreadLocalShim ( def_id) ,
589+ def : ty:: InstanceKind :: Shim ( ty :: ShimKind :: ThreadLocal ( def_id) ) ,
582590 args : ty:: GenericArgs :: empty ( ) ,
583591 } ,
584592 instantiating_crate,
0 commit comments