File tree 2 files changed +6
-1
lines changed
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> {
119
119
TyKind :: RigidTy ( RigidTy :: Array ( self . intern_ty ( * ty) , opaque ( constant) ) )
120
120
}
121
121
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
+ }
123
125
ty:: Ref ( _, _, _) => todo ! ( ) ,
124
126
ty:: FnDef ( _, _) => todo ! ( ) ,
125
127
ty:: FnPtr ( _) => todo ! ( ) ,
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ pub enum TyKind {
20
20
RigidTy ( RigidTy ) ,
21
21
}
22
22
23
+ type Region = Opaque ;
24
+
23
25
#[ derive( Clone , Debug ) ]
24
26
pub enum RigidTy {
25
27
Bool ,
@@ -31,6 +33,7 @@ pub enum RigidTy {
31
33
Str ,
32
34
Array ( Ty , Const ) ,
33
35
Slice ( Ty ) ,
36
+ RawPtr ( Ty , Mutability ) ,
34
37
Tuple ( Vec < Ty > ) ,
35
38
}
36
39
You can’t perform that action at this time.
0 commit comments