diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index d2765bf201ea..5f5d4354e8c9 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -70,6 +70,7 @@ class RustLangItem // https://github.com/rust-lang/rust/blob/master/library/core/src/ptr/const_ptr.rs CONST_PTR, + CONST_SLICE_PTR, UNKNOWN, }; @@ -208,6 +209,10 @@ class RustLangItem { return ItemType::CONST_PTR; } + else if (item.compare ("const_slice_ptr") == 0) + { + return ItemType::CONST_SLICE_PTR; + } return ItemType::UNKNOWN; } @@ -282,6 +287,8 @@ class RustLangItem return "RangeToInclusive"; case CONST_PTR: return "const_ptr"; + case CONST_SLICE_PTR: + return "const_slice_ptr"; case UNKNOWN: return "";