@@ -9,7 +9,7 @@ use rustc_hir as hir;
9
9
use rustc_index:: vec:: Idx ;
10
10
use rustc_middle:: mir:: * ;
11
11
use rustc_middle:: thir:: * ;
12
- use rustc_middle:: ty:: { self , CanonicalUserTypeAnnotation } ;
12
+ use rustc_middle:: ty:: CanonicalUserTypeAnnotation ;
13
13
use std:: iter;
14
14
15
15
impl < ' a , ' tcx > Builder < ' a , ' tcx > {
@@ -107,7 +107,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
107
107
Constant {
108
108
span : expr_span,
109
109
user_ty : None ,
110
- literal : ty :: Const :: from_bool ( this. tcx , true ) . into ( ) ,
110
+ literal : ConstantKind :: from_bool ( this. tcx , true ) ,
111
111
} ,
112
112
) ;
113
113
@@ -118,7 +118,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
118
118
Constant {
119
119
span : expr_span,
120
120
user_ty : None ,
121
- literal : ty :: Const :: from_bool ( this. tcx , false ) . into ( ) ,
121
+ literal : ConstantKind :: from_bool ( this. tcx , false ) ,
122
122
} ,
123
123
) ;
124
124
@@ -183,8 +183,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
183
183
span : expr_span,
184
184
user_ty : None ,
185
185
literal : match op {
186
- LogicalOp :: And => ty :: Const :: from_bool ( this. tcx , false ) . into ( ) ,
187
- LogicalOp :: Or => ty :: Const :: from_bool ( this. tcx , true ) . into ( ) ,
186
+ LogicalOp :: And => ConstantKind :: from_bool ( this. tcx , false ) ,
187
+ LogicalOp :: Or => ConstantKind :: from_bool ( this. tcx , true ) ,
188
188
} ,
189
189
} ,
190
190
) ;
0 commit comments