From d0b6b2ee2f4a447f4c3827f87ebaf5216de6f226 Mon Sep 17 00:00:00 2001 From: Josh Mcguigan Date: Wed, 1 Apr 2020 04:47:41 -0700 Subject: lower bool literal with the value from source code rather than default bool value --- crates/ra_hir_def/src/body/lower.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir_def/src') diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 7b809cf4f..28c570c76 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs @@ -748,7 +748,7 @@ impl From for Literal { LiteralKind::ByteString => Literal::ByteString(Default::default()), LiteralKind::String => Literal::String(Default::default()), LiteralKind::Byte => Literal::Int(Default::default(), Some(BuiltinInt::U8)), - LiteralKind::Bool => Literal::Bool(Default::default()), + LiteralKind::Bool(val) => Literal::Bool(val), LiteralKind::Char => Literal::Char(Default::default()), } } -- cgit v1.2.3