diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-11-09 00:39:46 +0100 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-03-26 17:35:02 +0000 |
commit | 5f117eec558feb301162b128fb6b613a8c842886 (patch) | |
tree | cfb094b42d1f79479a5ca02df24d5de0223f562f | |
parent | f88db85c0272c3f25d2638565d5f6647b64363e5 (diff) | |
download | gcc-5f117eec558feb301162b128fb6b613a8c842886.zip gcc-5f117eec558feb301162b128fb6b613a8c842886.tar.gz gcc-5f117eec558feb301162b128fb6b613a8c842886.tar.bz2 |
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.
-rw-r--r-- | gcc/rust/resolve/rust-late-name-resolver-2.0.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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 3090bbe..ee06c4e 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))}, |