Consider confirming that the TypeId
s used in a crate are unique
#664
Labels
T-compiler
Relevant to the compiler team, which will review and decide on the RFC.
Issue by huonw
Thursday Sep 11, 2014 at 22:03 GMT
For earlier discussion, see rust-lang/rust#17179
This issue was labelled with: A-an-interesting-project in the Rust repository
If two
TypeId
s of different types collide, we can get unsoundness, sinceAny
relies onTypeId
being unique for safe downcasts. We could have the compiler double check that anyTypeId
s it computes haven't occured before from another type.The text was updated successfully, but these errors were encountered: