File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,9 @@ impl<'tcx> Tables<'tcx> {
119119 TyKind :: RigidTy ( RigidTy :: Array ( self . intern_ty ( * ty) , opaque ( constant) ) )
120120 }
121121 ty:: Slice ( ty) => TyKind :: RigidTy ( RigidTy :: Slice ( self . intern_ty ( * ty) ) ) ,
122- ty:: RawPtr ( _) => todo ! ( ) ,
122+ ty:: RawPtr ( ty:: TypeAndMut { ty, mutbl } ) => {
123+ TyKind :: RigidTy ( RigidTy :: RawPtr ( self . intern_ty ( * ty) , mutbl. stable ( ) ) )
124+ }
123125 ty:: Ref ( _, _, _) => todo ! ( ) ,
124126 ty:: FnDef ( _, _) => todo ! ( ) ,
125127 ty:: FnPtr ( _) => todo ! ( ) ,
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ pub enum TyKind {
2020 RigidTy ( RigidTy ) ,
2121}
2222
23+ type Region = Opaque ;
24+
2325#[ derive( Clone , Debug ) ]
2426pub enum RigidTy {
2527 Bool ,
@@ -31,6 +33,7 @@ pub enum RigidTy {
3133 Str ,
3234 Array ( Ty , Const ) ,
3335 Slice ( Ty ) ,
36+ RawPtr ( Ty , Mutability ) ,
3437 Tuple ( Vec < Ty > ) ,
3538}
3639
You can’t perform that action at this time.
0 commit comments