File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ impl From<ast::LiteralKind> for Literal {
748748 LiteralKind :: ByteString => Literal :: ByteString ( Default :: default ( ) ) ,
749749 LiteralKind :: String => Literal :: String ( Default :: default ( ) ) ,
750750 LiteralKind :: Byte => Literal :: Int ( Default :: default ( ) , Some ( BuiltinInt :: U8 ) ) ,
751- LiteralKind :: Bool => Literal :: Bool ( Default :: default ( ) ) ,
751+ LiteralKind :: Bool ( val ) => Literal :: Bool ( val ) ,
752752 LiteralKind :: Char => Literal :: Char ( Default :: default ( ) ) ,
753753 }
754754 }
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ pub enum LiteralKind {
308308 Byte ,
309309 IntNumber { suffix : Option < SmolStr > } ,
310310 FloatNumber { suffix : Option < SmolStr > } ,
311- Bool ,
311+ Bool ( bool ) ,
312312}
313313
314314impl ast:: Literal {
@@ -355,7 +355,8 @@ impl ast::Literal {
355355 LiteralKind :: FloatNumber { suffix : Self :: find_suffix ( & text, & FLOAT_SUFFIXES ) }
356356 }
357357 STRING | RAW_STRING => LiteralKind :: String ,
358- T ! [ true ] | T ! [ false ] => LiteralKind :: Bool ,
358+ T ! [ true ] => LiteralKind :: Bool ( true ) ,
359+ T ! [ false ] => LiteralKind :: Bool ( false ) ,
359360 BYTE_STRING | RAW_BYTE_STRING => LiteralKind :: ByteString ,
360361 CHAR => LiteralKind :: Char ,
361362 BYTE => LiteralKind :: Byte ,
You can’t perform that action at this time.
0 commit comments