@@ -10,7 +10,6 @@ use rustc_smir::Tables;
1010use rustc_span:: Symbol ;
1111use stable_mir:: abi:: Layout ;
1212use stable_mir:: compiler_interface:: BridgeTys ;
13- use stable_mir:: unstable:: { RustcInternal , InternalCx } ;
1413use stable_mir:: mir:: alloc:: AllocId ;
1514use stable_mir:: mir:: mono:: { Instance , MonoItem , StaticDef } ;
1615use stable_mir:: mir:: { BinOp , Mutability , Place , ProjectionElem , RawPtrKind , Safety , UnOp } ;
@@ -20,11 +19,11 @@ use stable_mir::ty::{
2019 GenericArgKind , GenericArgs , IntTy , MirConst , Movability , Pattern , Region , RigidTy , Span ,
2120 TermKind , TraitRef , Ty , TyConst , UintTy , VariantDef , VariantIdx ,
2221} ;
22+ use stable_mir:: unstable:: { InternalCx , RustcInternal } ;
2323use stable_mir:: { CrateItem , CrateNum , DefId , IndexedVal } ;
2424
2525use crate :: { rustc_smir, stable_mir} ;
2626
27-
2827impl RustcInternal for CrateItem {
2928 type T < ' tcx > = rustc_span:: def_id:: DefId ;
3029 fn internal < ' tcx > (
@@ -447,9 +446,10 @@ impl RustcInternal for BoundVariableKind {
447446 match self {
448447 BoundVariableKind :: Ty ( kind) => rustc_ty:: BoundVariableKind :: Ty ( match kind {
449448 BoundTyKind :: Anon => rustc_ty:: BoundTyKind :: Anon ,
450- BoundTyKind :: Param ( def, symbol) => {
451- rustc_ty:: BoundTyKind :: Param ( def. 0 . internal ( tables, tcx) , Symbol :: intern ( symbol) )
452- }
449+ BoundTyKind :: Param ( def, symbol) => rustc_ty:: BoundTyKind :: Param (
450+ def. 0 . internal ( tables, tcx) ,
451+ Symbol :: intern ( symbol) ,
452+ ) ,
453453 } ) ,
454454 BoundVariableKind :: Region ( kind) => rustc_ty:: BoundVariableKind :: Region ( match kind {
455455 BoundRegionKind :: BrAnon => rustc_ty:: BoundRegionKind :: Anon ,
@@ -542,7 +542,10 @@ impl RustcInternal for ExistentialTraitRef {
542542 tcx : impl InternalCx < ' tcx > ,
543543 ) -> Self :: T < ' tcx > {
544544 use rustc_smir:: context:: SmirExistentialTraitRef ;
545- tcx. new_from_args ( self . def_id . 0 . internal ( tables, tcx) , self . generic_args . internal ( tables, tcx) )
545+ tcx. new_from_args (
546+ self . def_id . 0 . internal ( tables, tcx) ,
547+ self . generic_args . internal ( tables, tcx) ,
548+ )
546549 }
547550}
548551
0 commit comments