We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6b9c1 commit 0b5f642Copy full SHA for 0b5f642
src/stacked_exceptions.rs
@@ -110,7 +110,7 @@ impl<E> Exception<E> {
110
/// `ex` must be a unique pointer at an exception object.
111
pub const unsafe fn header(ex: *mut Self) -> *mut Header {
112
// SAFETY: Required transitively.
113
- unsafe { ex.byte_add(offset_of!(Self, header)) }.cast()
+ unsafe { &raw mut (*ex).header }
114
}
115
116
/// Restore pointer from pointer to header.
0 commit comments