Skip to content

Conversation

@LeSeulArtichaut
Copy link

By evaluating $ptr outside of the macro's unsafe block, it is up to the caller to wrap any unsafe code needed to evaluate the pointer in an unsafe block and provide a SAFETY explanation.

Helps with #351.

Signed-off-by: Léo Lanteri Thauvin [email protected]

By evaluating `$ptr` outside of the macro's `unsafe` block, it is up to
the caller to wrap any `unsafe` code needed to evaluate the pointer in
an `unsafe` block and provide a `SAFETY` explanation.

Signed-off-by: Léo Lanteri Thauvin <[email protected]>
@ojeda
Copy link
Member

ojeda commented Jul 31, 2021

LGTM

@ojeda ojeda merged commit a033825 into Rust-for-Linux:rust Jul 31, 2021
@LeSeulArtichaut LeSeulArtichaut deleted the unsafe-ptr-container-of branch July 31, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants