From d0a1fcccb5ddba4bff8acb6a219e1f7b2e96cec1 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Sat, 16 May 2020 20:33:11 +0100 Subject: Add missing bool builtin --- gcc/rust/analysis/rust-resolution.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/rust/analysis/rust-resolution.cc b/gcc/rust/analysis/rust-resolution.cc index fe4dd6d..6cc47a2 100644 --- a/gcc/rust/analysis/rust-resolution.cc +++ b/gcc/rust/analysis/rust-resolution.cc @@ -40,6 +40,7 @@ TypeResolution::TypeResolution (AST::Crate &crate) : crate (crate) ADD_BUILTIN_TYPE ("char", typeScope); ADD_BUILTIN_TYPE ("str", typeScope); + ADD_BUILTIN_TYPE ("bool", typeScope); } TypeResolution::~TypeResolution () @@ -587,7 +588,6 @@ TypeResolution::visit (AST::LiteralPattern &pattern) void TypeResolution::visit (AST::IdentifierPattern &pattern) { - printf ("IdentifierPattern: %s\n", pattern.as_string ().c_str ()); letPatternBuffer.push_back (pattern); } -- cgit v1.1