5
Github slightly more typed interface to panic implementation by RalfJung · Pull...
source link: https://github.com/rust-lang/rust/pull/80260
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.
Member
RalfJung commented 26 days ago
The panic payload is currently being passed around as a usize
. However, it actually is a pointer, and the involved types are available on all ends of this API, so I propose we use the proper pointer type to avoid some casts. Avoiding int-to-ptr casts also makes this code work with miri -Zmiri-track-raw-pointers
.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK