diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-01-21 20:16:38 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-01-21 20:42:09 +0000 |
commit | e77f051369efce4207c965ab2b69c5d9867c5846 (patch) | |
tree | c8f2157e6a3abf4d6bfc4ac2e81498127c88e1c9 /gcc/rust/util/rust-common.h | |
parent | a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2 (diff) | |
download | gcc-e77f051369efce4207c965ab2b69c5d9867c5846.zip gcc-e77f051369efce4207c965ab2b69c5d9867c5846.tar.gz gcc-e77f051369efce4207c965ab2b69c5d9867c5846.tar.bz2 |
Extract AsyncConstStatus to be a shared enum between AST and HIR
This allows us to reuse the same enum and fix the uninitilized warning
as it has already been setup before hand in the AST.
Fixes #875
Diffstat (limited to 'gcc/rust/util/rust-common.h')
-rw-r--r-- | gcc/rust/util/rust-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-common.h b/gcc/rust/util/rust-common.h index 6d511ba..b8a2ac3 100644 --- a/gcc/rust/util/rust-common.h +++ b/gcc/rust/util/rust-common.h @@ -41,6 +41,13 @@ enum Polarity Negative }; +enum AsyncConstStatus +{ + NONE, + CONST_FN, + ASYNC_FN +}; + } // namespace Rust #endif // RUST_COMMON |