From ee430346fe2265fc320c098efe8e1bbcbe0dd54c Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Wed, 16 Jul 2025 22:42:55 +0000 Subject: [PATCH] Correct comments. --- compiler/rustc_passes/src/stability.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index 988025db58be..a1a900d54b93 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -124,7 +124,7 @@ fn inherit_stability(def_kind: DefKind) -> bool { /// If the `-Z force-unstable-if-unmarked` flag is passed then we provide /// a parent stability annotation which indicates that this is private /// with the `rustc_private` feature. This is intended for use when -/// compiling `librustc_*` crates themselves so we can leverage crates.io +/// compiling library and `rustc_*` crates themselves so we can leverage crates.io /// while maintaining the invariant that all sysroot crates are unstable /// by default and are unable to be used. const FORCE_UNSTABLE: Stability = Stability { @@ -248,13 +248,11 @@ fn lookup_const_stability(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option