Closed
Description
Location
https://doc.rust-lang.org/std/ptr/struct.DynMetadata.html
Summary
There is no documentation as far as I should see that defines the behaviour of the PartialEq
impl for DynMetadata
. I think the guarantees that are made or not made should be documented. For instance, are vtables for a given concrete type guaranteed to be unique? People will assume they are, and that ==
will tell you if the types match. It would not surprise me to learn that this is wrong.