From ae35bc3beeeb833c173ade959f77239d3765602d Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Mon, 17 Oct 2022 16:50:34 +0100 Subject: [PATCH] Add missing fn_once_output langitem --- gcc/rust/util/rust-lang-item.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index c7e0e5c811d4..02eeaee60df3 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -75,6 +75,7 @@ class RustLangItem // functions FN_ONCE, + FN_ONCE_OUTPUT, UNKNOWN, }; @@ -225,6 +226,10 @@ class RustLangItem { return ItemType::FN_ONCE; } + else if (item.compare ("fn_once_output") == 0) + { + return ItemType::FN_ONCE_OUTPUT; + } return ItemType::UNKNOWN; } @@ -305,6 +310,8 @@ class RustLangItem return "const_slice_ptr"; case FN_ONCE: return "fn_once"; + case FN_ONCE_OUTPUT: + return "fn_once_output"; case UNKNOWN: return "";