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