1

CFI: Restore typeid_for_instance default behavior by rcvalle · Pull Request #123...

 3 weeks ago
source link: https://github.com/rust-lang/rust/pull/123487
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Member

Restore typeid_for_instance default behavior of performing self type erasure, since it's the most common case and what it does most of the time. Using concrete self (or not performing self type erasure) is for assigning a secondary type id, and secondary type ids are only assigned when they're unique and to methods, and also are only tested for when methods are used as function pointers.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK