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:
Dylan DPC 2020-05-19 13:53:47 +02:00 committed by GitHub
commit 745ca2afae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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