We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e43a5c5 commit 595eb9cCopy full SHA for 595eb9c
gcc/rust/util/rust-lang-item.h
@@ -70,6 +70,7 @@ class RustLangItem
70
71
// https://github.com/rust-lang/rust/blob/master/library/core/src/ptr/const_ptr.rs
72
CONST_PTR,
73
+ CONST_SLICE_PTR,
74
75
UNKNOWN,
76
};
@@ -208,6 +209,10 @@ class RustLangItem
208
209
{
210
return ItemType::CONST_PTR;
211
}
212
+ else if (item.compare ("const_slice_ptr") == 0)
213
+ {
214
+ return ItemType::CONST_SLICE_PTR;
215
+ }
216
217
return ItemType::UNKNOWN;
218
@@ -282,6 +287,8 @@ class RustLangItem
282
287
return "RangeToInclusive";
283
288
case CONST_PTR:
284
289
return "const_ptr";
290
+ case CONST_SLICE_PTR:
291
+ return "const_slice_ptr";
285
292
286
293
case UNKNOWN:
294
return "<UNKNOWN>";
0 commit comments