Skip to content

Commit 13f1c84

Browse files
celinvalRalfJung
andauthored
Apply suggestions from code review
Co-authored-by: Ralf Jung <[email protected]>
1 parent 3feac59 commit 13f1c84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/contracts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub use crate::macros::builtin::{contracts_ensures as ensures, contracts_require
1313
#[unstable(feature = "contracts_internals", issue = "128044" /* compiler-team#759 */)]
1414
// Similar to `contract_check_requires`, we need to use the user-facing
1515
// `contracts` feature rather than the perma-unstable `contracts_internals`.
16-
// Const-checking doesn't honor allow internal unstable logic used by contract expansion.
16+
// Const-checking doesn't honor allow_internal_unstable logic used by contract expansion.
1717
#[rustc_const_unstable(feature = "contracts", issue = "128044")]
1818
#[lang = "contract_build_check_ensures"]
1919
pub const fn build_check_ensures<Ret, C>(cond: C) -> C

library/core/src/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3484,7 +3484,7 @@ pub const fn contract_check_requires<C: Fn() -> bool + Copy>(cond: C) {
34843484
#[unstable(feature = "contracts_internals", issue = "128044")]
34853485
// Similar to `contract_check_requires`, we need to use the user-facing
34863486
// `contracts` feature rather than the perma-unstable `contracts_internals`.
3487-
// Const-checking doesn't honor allow internal unstable logic used by contract expansion.
3487+
// Const-checking doesn't honor allow_internal_unstable logic used by contract expansion.
34883488
#[rustc_const_unstable(feature = "contracts", issue = "128044")]
34893489
#[lang = "contract_check_ensures"]
34903490
#[rustc_intrinsic]

0 commit comments

Comments
 (0)