Rollup merge of #72344 - kornelski:assertdoc, r=Mark-Simulacrum
Assert doc wording The current wording implies unsafe code is dependent on assert: https://users.rust-lang.org/t/are-assert-statements-included-in-unsafe-blocks/42865
This commit is contained in:
commit
745ca2afae
1 changed files with 1 additions and 1 deletions
|
|
@ -1243,7 +1243,7 @@ pub(crate) mod builtin {
|
|||
/// be disabled. See [`debug_assert!`] for assertions that are not enabled in
|
||||
/// release builds by default.
|
||||
///
|
||||
/// Unsafe code relies on `assert!` to enforce run-time invariants that, if
|
||||
/// Unsafe code may rely on `assert!` to enforce run-time invariants that, if
|
||||
/// violated could lead to unsafety.
|
||||
///
|
||||
/// Other use-cases of `assert!` include testing and enforcing run-time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue