We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77a4950 commit a1b0650Copy full SHA for a1b0650
gcc/rust/util/rust-lang-item.h
@@ -68,6 +68,9 @@ class RustLangItem
68
RANGE_INCLUSIVE,
69
RANGE_TO_INCLUSIVE,
70
71
+ // https://github.com/rust-lang/rust/blob/master/library/core/src/ptr/const_ptr.rs
72
+ CONST_PTR,
73
+
74
UNKNOWN,
75
};
76
@@ -201,6 +204,10 @@ class RustLangItem
201
204
{
202
205
return ItemType::RANGE_TO_INCLUSIVE;
203
206
}
207
+ else if (item.compare ("const_ptr") == 0)
208
+ {
209
+ return ItemType::CONST_PTR;
210
+ }
211
212
return ItemType::UNKNOWN;
213
@@ -273,6 +280,8 @@ class RustLangItem
273
280
return "RangeInclusive";
274
281
case RANGE_TO_INCLUSIVE:
275
282
return "RangeToInclusive";
283
+ case CONST_PTR:
284
+ return "const_ptr";
276
285
277
286
case UNKNOWN:
278
287
return "<UNKNOWN>";
0 commit comments