From a110fd152f301915f22f491ba403f6d67d90949e Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Tue, 25 Jan 2022 12:33:17 +0000 Subject: Add deref_mut lang_item mappings --- gcc/rust/util/rust-hir-map.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/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 ""; -- cgit v1.1