7
7
//!
8
8
//! For now, we are developing everything inside `rustc`, thus, we keep this module private.
9
9
10
- use crate :: stable_mir:: { self , ty:: TyKind , Context } ;
10
+ use crate :: stable_mir:: ty:: { RigidTy , TyKind } ;
11
+ use crate :: stable_mir:: { self , Context } ;
11
12
use rustc_middle:: mir;
12
13
use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
13
14
use rustc_span:: def_id:: { CrateNum , DefId , LOCAL_CRATE } ;
@@ -69,7 +70,7 @@ pub struct Tables<'tcx> {
69
70
impl < ' tcx > Tables < ' tcx > {
70
71
fn rustc_ty_to_ty ( & mut self , ty : Ty < ' tcx > ) -> TyKind {
71
72
match ty. kind ( ) {
72
- ty:: Bool => TyKind :: Bool ,
73
+ ty:: Bool => TyKind :: RigidTy ( RigidTy :: Bool ) ,
73
74
ty:: Char => todo ! ( ) ,
74
75
ty:: Int ( _) => todo ! ( ) ,
75
76
ty:: Uint ( _) => todo ! ( ) ,
@@ -90,9 +91,9 @@ impl<'tcx> Tables<'tcx> {
90
91
ty:: GeneratorWitness ( _) => todo ! ( ) ,
91
92
ty:: GeneratorWitnessMIR ( _, _) => todo ! ( ) ,
92
93
ty:: Never => todo ! ( ) ,
93
- ty:: Tuple ( fields) => {
94
- TyKind :: Tuple ( fields. iter ( ) . map ( |ty| self . intern_ty ( ty) ) . collect ( ) )
95
- }
94
+ ty:: Tuple ( fields) => TyKind :: RigidTy ( RigidTy :: Tuple (
95
+ fields. iter ( ) . map ( |ty| self . intern_ty ( ty) ) . collect ( ) ,
96
+ ) ) ,
96
97
ty:: Alias ( _, _) => todo ! ( ) ,
97
98
ty:: Param ( _) => todo ! ( ) ,
98
99
ty:: Bound ( _, _) => todo ! ( ) ,
0 commit comments