From: Arthur Cohen Date: Wed, 8 Nov 2023 23:39:46 +0000 (+0100) Subject: gccrs: late: Add bool builtin type X-Git-Tag: basepoints/gcc-16~7001 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a7e904a7f08670205af52d30020ac601cf258c7;p=thirdparty%2Fgcc.git gccrs: late: Add bool builtin type gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc (Late::setup_builtin_types): Setup bool as builtin type. --- diff --git a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc index 3090bbeff2a..ee06c4efc2e 100644 --- a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc @@ -64,6 +64,7 @@ Late::setup_builtin_types () }; static const LType builtins[] = { + {LType ("bool", new TyTy::BoolType (next_hir_id ()))}, {LType ("u8", new TyTy::UintType (next_hir_id (), TyTy::UintType::U8))}, {LType ("u16", new TyTy::UintType (next_hir_id (), TyTy::UintType::U16))}, {LType ("u32", new TyTy::UintType (next_hir_id (), TyTy::UintType::U32))},