about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2024-07-03 03:03:13 -0400
committerGitHub <noreply@github.com>2024-07-03 03:03:13 -0400
commitdb592253a673a57ce0d1fa10b74c2a69c0e62bf9 (patch)
tree7cdffee79c30f93cf6c072d500fd115e2aad24f0 /compiler/rustc_codegen_llvm/src
parentd163e5e515d470a713f7d6907852904622a85d4e (diff)
parent5745c220e65a83436bb0bf855dcf83aebffe8c73 (diff)
downloadrust-db592253a673a57ce0d1fa10b74c2a69c0e62bf9.tar.gz
rust-db592253a673a57ce0d1fa10b74c2a69c0e62bf9.zip
Rollup merge of #123588 - tgross35:stabilize-assert_unchecked, r=dtolnay
Stabilize `hint::assert_unchecked`

Make the following API stable, including const:

```rust
// 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: https://github.com/rust-lang/rust/issues/119131
FCP: https://github.com/rust-lang/rust/issues/119131#issuecomment-1906394087. The docs update should resolve the remaining concern.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions