Skip to content

Always use an unsafe block to unsafe_main_ptr.#643

Merged
dgohman-fastly merged 2 commits into
mainfrom
dgohman-fastly/unsafe-main-ptr
Jun 16, 2026
Merged

Always use an unsafe block to unsafe_main_ptr.#643
dgohman-fastly merged 2 commits into
mainfrom
dgohman-fastly/unsafe-main-ptr

Conversation

@dgohman-fastly

Copy link
Copy Markdown
Contributor

Add an unsafe block to the cfg(feature = "noshift") version of the unsafe_main_ptr so that $ptr is consistently evaluated inside an unsafe block.

Add an `unsafe` block to the `cfg(feature = "noshift")` version of the
`unsafe_main_ptr` so that `$ptr` is consistently evaluated inside an
`unsafe` block.
chenyan2002
chenyan2002 previously approved these changes Jun 16, 2026
@dgohman-fastly dgohman-fastly merged commit aa326e3 into main Jun 16, 2026
15 checks passed
@dgohman-fastly dgohman-fastly deleted the dgohman-fastly/unsafe-main-ptr branch June 16, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants