File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,11 @@ impl<'tcx> Tables<'tcx> {
114
114
) ,
115
115
) ) ,
116
116
ty:: Foreign ( _) => todo ! ( ) ,
117
- ty:: Str => todo ! ( ) ,
118
- ty:: Array ( _, _) => todo ! ( ) ,
119
- ty:: Slice ( _) => todo ! ( ) ,
117
+ ty:: Str => TyKind :: RigidTy ( RigidTy :: Str ) ,
118
+ ty:: Array ( ty, constant) => {
119
+ TyKind :: RigidTy ( RigidTy :: Array ( self . intern_ty ( * ty) , opaque ( constant) ) )
120
+ }
121
+ ty:: Slice ( ty) => TyKind :: RigidTy ( RigidTy :: Slice ( self . intern_ty ( * ty) ) ) ,
120
122
ty:: RawPtr ( _) => todo ! ( ) ,
121
123
ty:: Ref ( _, _, _) => todo ! ( ) ,
122
124
ty:: FnDef ( _, _) => todo ! ( ) ,
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ pub enum RigidTy {
26
26
Uint ( UintTy ) ,
27
27
Float ( FloatTy ) ,
28
28
Adt ( AdtDef , AdtSubsts ) ,
29
+ Str ,
30
+ Array ( Ty , Const ) ,
31
+ Slice ( Ty ) ,
29
32
Tuple ( Vec < Ty > ) ,
30
33
}
31
34
You can’t perform that action at this time.
0 commit comments