Skip to content

Stabilize hint::assert_unchecked#123588

Merged
bors merged 2 commits into
rust-lang:masterfrom
tgross35:stabilize-assert_unchecked
Jul 3, 2024
Merged

Stabilize hint::assert_unchecked#123588
bors merged 2 commits into
rust-lang:masterfrom
tgross35:stabilize-assert_unchecked

Conversation

@tgross35
Copy link
Copy Markdown
Contributor

@tgross35 tgross35 commented Apr 7, 2024

Make the following API stable, including const:

// core::hint, std::hint

pub const unsafe fn assert_unchecked(p: bool);

This PR also reworks some of the documentation and adds an example.

Tracking issue: #119131
FCP: #119131 (comment). The docs update should resolve the remaining concern.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.