diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/typecheck/rust-tyty.h | 1 | ||||
-rw-r--r-- | gcc/rust/util/rust-hir-map.h | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index 0c9258d..f99d8ce 100644 --- a/gcc/rust/typecheck/rust-tyty.h +++ b/gcc/rust/typecheck/rust-tyty.h @@ -24,7 +24,6 @@ #include "rust-diagnostics.h" #include "rust-abi.h" #include "rust-common.h" -#include "tree.h" namespace Rust { diff --git a/gcc/rust/util/rust-hir-map.h b/gcc/rust/util/rust-hir-map.h index 0026f3b..8781629 100644 --- a/gcc/rust/util/rust-hir-map.h +++ b/gcc/rust/util/rust-hir-map.h @@ -62,6 +62,7 @@ public: SHR_ASSIGN, DEREF, + DEREF_MUT, UNKNOWN, }; @@ -160,6 +161,10 @@ public: { return ItemType::DEREF; } + else if (item.compare ("deref_mut") == 0) + { + return ItemType::DEREF_MUT; + } return ItemType::UNKNOWN; } @@ -214,6 +219,8 @@ public: return "shr_assign"; case DEREF: return "deref"; + case DEREF_MUT: + return "deref_mut"; case UNKNOWN: return "<UNKNOWN>"; |