@@ -10,7 +10,7 @@ use rustc_span::Symbol;
1010use  stable_mir:: abi:: Layout ; 
1111use  stable_mir:: mir:: alloc:: AllocId ; 
1212use  stable_mir:: mir:: mono:: { Instance ,  MonoItem ,  StaticDef } ; 
13- use  stable_mir:: mir:: { BinOp ,  Mutability ,  Place ,  ProjectionElem ,  Safety ,  UnOp } ; 
13+ use  stable_mir:: mir:: { BinOp ,  Mutability ,  Place ,  ProjectionElem ,  RawPtrKind ,   Safety ,  UnOp } ; 
1414use  stable_mir:: ty:: { 
1515    Abi ,  AdtDef ,  Binder ,  BoundRegionKind ,  BoundTyKind ,  BoundVariableKind ,  ClosureKind ,  DynKind , 
1616    ExistentialPredicate ,  ExistentialProjection ,  ExistentialTraitRef ,  FloatTy ,  FnSig , 
@@ -226,6 +226,18 @@ impl RustcInternal for Movability {
226226    } 
227227} 
228228
229+ impl  RustcInternal  for  RawPtrKind  { 
230+     type  T < ' tcx >  = rustc_middle:: mir:: RawPtrKind ; 
231+ 
232+     fn  internal < ' tcx > ( & self ,  _tables :  & mut  Tables < ' _ > ,  _tcx :  TyCtxt < ' tcx > )  -> Self :: T < ' tcx >  { 
233+         match  self  { 
234+             RawPtrKind :: Mut  => rustc_middle:: mir:: RawPtrKind :: Mut , 
235+             RawPtrKind :: Const  => rustc_middle:: mir:: RawPtrKind :: Const , 
236+             RawPtrKind :: FakeForPtrMetadata  => rustc_middle:: mir:: RawPtrKind :: FakeForPtrMetadata , 
237+         } 
238+     } 
239+ } 
240+ 
229241impl  RustcInternal  for  FnSig  { 
230242    type  T < ' tcx >  = rustc_ty:: FnSig < ' tcx > ; 
231243
0 commit comments