File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ unsafe impl ThrowByPointer for ActiveBackend {
4242 #[ inline( always) ]
4343 fn intercept < Func : FnOnce ( ) -> R , R > ( func : Func ) -> Result < R , * mut Header > {
4444 let ptr = match intercept ( func, |ex| {
45- // SAFETY: `core::intrinsics::catch_unwind` provides a pointer to a stack-allocated
46- // instance of `CatchData`. It needs to be read inside the `intercept` callback because
47- // it'll be dead by the moment `intercept` returns.
4845 #[ expect(
4946 clippy:: cast_ptr_alignment,
5047 reason = "guaranteed to be aligned by rustc"
5148 ) ]
49+ // SAFETY: `core::intrinsics::catch_unwind` provides a pointer to a stack-allocated
50+ // instance of `CatchData`. It needs to be read inside the `intercept` callback because
51+ // it'll be dead by the moment `intercept` returns.
5252 unsafe {
5353 ( * ex. cast :: < CatchData > ( ) ) . ptr
5454 }
You can’t perform that action at this time.
0 commit comments