diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-05-05 15:18:08 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-05-05 16:25:30 +0200 |
commit | b088d47cdc1514d5f92801481cbb412d1e01aeeb (patch) | |
tree | b3898bf22b24c3dad7e45a633619efab247fed5d /gcc/rust/rust-lang.cc | |
parent | a6f5bc6054520f0dc8479215dc1204196ae7767f (diff) | |
download | gcc-b088d47cdc1514d5f92801481cbb412d1e01aeeb.zip gcc-b088d47cdc1514d5f92801481cbb412d1e01aeeb.tar.gz gcc-b088d47cdc1514d5f92801481cbb412d1e01aeeb.tar.bz2 |
util: Add Optional<T> wrapper class
The class provides an easy to use alternative to raw pointers or member
+ bool pairs. It should be easy to extend and improve upon.
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r-- | gcc/rust/rust-lang.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc index 73f9839..dd8c608 100644 --- a/gcc/rust/rust-lang.cc +++ b/gcc/rust/rust-lang.cc @@ -37,6 +37,7 @@ #include "rust-cfg-parser.h" #include "rust-privacy-ctx.h" #include "rust-ast-resolve-item.h" +#include "rust-optional.h" #include <mpfr.h> // note: header files must be in this order or else forward declarations don't @@ -461,6 +462,7 @@ run_rust_tests () rust_privacy_ctx_test (); rust_crate_name_validation_test (); rust_simple_path_resolve_test (); + rust_optional_test (); } } // namespace selftest |