@@ -9,7 +9,7 @@ use rustc_hir as hir;
99use rustc_index:: vec:: Idx ;
1010use rustc_middle:: mir:: * ;
1111use rustc_middle:: thir:: * ;
12- use rustc_middle:: ty:: { self , CanonicalUserTypeAnnotation } ;
12+ use rustc_middle:: ty:: CanonicalUserTypeAnnotation ;
1313use std:: iter;
1414
1515impl < ' a , ' tcx > Builder < ' a , ' tcx > {
@@ -107,7 +107,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
107107 Constant {
108108 span : expr_span,
109109 user_ty : None ,
110- literal : ty :: Const :: from_bool ( this. tcx , true ) . into ( ) ,
110+ literal : ConstantKind :: from_bool ( this. tcx , true ) ,
111111 } ,
112112 ) ;
113113
@@ -118,7 +118,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
118118 Constant {
119119 span : expr_span,
120120 user_ty : None ,
121- literal : ty :: Const :: from_bool ( this. tcx , false ) . into ( ) ,
121+ literal : ConstantKind :: from_bool ( this. tcx , false ) ,
122122 } ,
123123 ) ;
124124
@@ -183,8 +183,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
183183 span : expr_span,
184184 user_ty : None ,
185185 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 ) ,
188188 } ,
189189 } ,
190190 ) ;
0 commit comments