about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCelina G. Val <celinval@amazon.com>2025-04-10 16:32:56 -0700
committerGitHub <noreply@github.com>2025-04-10 16:32:56 -0700
commit13f1c845840fa40135fbed8798ec42df4d93b5d3 (patch)
treea87c0527ceb773b359320e2208ff8553d3d46df8
parent3feac59b794acf326c0efebaabd500e47fc65ba9 (diff)
downloadrust-13f1c845840fa40135fbed8798ec42df4d93b5d3.tar.gz
rust-13f1c845840fa40135fbed8798ec42df4d93b5d3.zip
Apply suggestions from code review
Co-authored-by: Ralf Jung <post@ralfj.de>
-rw-r--r--library/core/src/contracts.rs2
-rw-r--r--library/core/src/intrinsics/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/contracts.rs b/library/core/src/contracts.rs
index 53f459debab..495f84bce4b 100644
--- a/library/core/src/contracts.rs
+++ b/library/core/src/contracts.rs
@@ -13,7 +13,7 @@ pub use crate::macros::builtin::{contracts_ensures as ensures, contracts_require
 #[unstable(feature = "contracts_internals", issue = "128044" /* compiler-team#759 */)]
 // Similar to `contract_check_requires`, we need to use the user-facing
 // `contracts` feature rather than the perma-unstable `contracts_internals`.
-// Const-checking doesn't honor allow internal unstable logic used by contract expansion.
+// Const-checking doesn't honor allow_internal_unstable logic used by contract expansion.
 #[rustc_const_unstable(feature = "contracts", issue = "128044")]
 #[lang = "contract_build_check_ensures"]
 pub const fn build_check_ensures<Ret, C>(cond: C) -> C
diff --git a/library/core/src/intrinsics/mod.rs b/library/core/src/intrinsics/mod.rs
index 90f686a6728..9c9c1e41e71 100644
--- a/library/core/src/intrinsics/mod.rs
+++ b/library/core/src/intrinsics/mod.rs
@@ -3484,7 +3484,7 @@ pub const fn contract_check_requires<C: Fn() -> bool + Copy>(cond: C) {
 #[unstable(feature = "contracts_internals", issue = "128044")]
 // Similar to `contract_check_requires`, we need to use the user-facing
 // `contracts` feature rather than the perma-unstable `contracts_internals`.
-// Const-checking doesn't honor allow internal unstable logic used by contract expansion.
+// Const-checking doesn't honor allow_internal_unstable logic used by contract expansion.
 #[rustc_const_unstable(feature = "contracts", issue = "128044")]
 #[lang = "contract_check_ensures"]
 #[rustc_intrinsic]