You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disregard: Broken attempt at type_id hack on stable Rust with no unsafe #139043
Also @traviscross could you please quit tagging approximately everyone in the world and then editing away those tags as soon as someone comments? It's pretty disruptive 😅
changed the title [-]`type_id` hack on stable Rust with no unsafe[/-][+]Broken attempt at `type_id` hack on stable Rust with no unsafe[/+]on Mar 28, 2025
changed the title [-]Broken attempt at `type_id` hack on stable Rust with no unsafe[/-][+]Disregard: Broken attempt at `type_id` hack on stable Rust with no unsafe[/+]on Mar 28, 2025
Activity
compiler-errors commentedon Mar 28, 2025
@traviscross:
All this code does is compute the type id of the type
dyn Marker + 'static. It's not violating any sort of library UB. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6a90175675c2021bf4f385714a3507a1What exactly are you trying to demonstrate in this code?
compiler-errors commentedon Mar 28, 2025
Also @traviscross could you please quit tagging approximately everyone in the world and then editing away those tags as soon as someone comments? It's pretty disruptive 😅
traviscross commentedon Mar 28, 2025
OK, thanks for that. One moment, I went too far in trying to simplify the example, but I may still have a version that works.
traviscross commentedon Mar 28, 2025
No, never mind. I thought I had something, but it doesn't work. Obviously have been staring at this too long. Sorry for the noise.
[-]`type_id` hack on stable Rust with no unsafe[/-][+]Broken attempt at `type_id` hack on stable Rust with no unsafe[/+][-]Broken attempt at `type_id` hack on stable Rust with no unsafe[/-][+]Disregard: Broken attempt at `type_id` hack on stable Rust with no unsafe[/+]