Skip to content

A<T> and A<U> get the same hash #2

@joonazan

Description

@joonazan

I realized this while writing basically the same functionality, just compile time instead of runtime. If this is a problem, you'll have to include the typehash of T in A<T>'s hash.

BTW, your type_hash function would be a lot simpler if you hashed module_path!() and the name of the type. That should be enough to uniquely identify a type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions