@@ -10,7 +10,7 @@ use rustc_span::Symbol;
10
10
use stable_mir:: abi:: Layout ;
11
11
use stable_mir:: mir:: alloc:: AllocId ;
12
12
use 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 } ;
14
14
use stable_mir:: ty:: {
15
15
Abi , AdtDef , Binder , BoundRegionKind , BoundTyKind , BoundVariableKind , ClosureKind , DynKind ,
16
16
ExistentialPredicate , ExistentialProjection , ExistentialTraitRef , FloatTy , FnSig ,
@@ -226,6 +226,18 @@ impl RustcInternal for Movability {
226
226
}
227
227
}
228
228
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
+
229
241
impl RustcInternal for FnSig {
230
242
type T < ' tcx > = rustc_ty:: FnSig < ' tcx > ;
231
243
0 commit comments