Tracking Issue for comparing TypeId
in const items
#101871
Labels
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(const_cmp_type_id)]
This is a tracking issue for comparing
TypeId
in const items.Public API
Steps / History
TypeId
ordering impls #101698Unresolved Questions
const
precludes some possible implementations, such as the one whereTypeId
includes a pointer to a static as proposed in TypeId: use a (v0) mangled type to remain sound in the face of hash collisions. #95845. This const-ness should not be stabilized without an explicit decision that we never want such an implementation.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: