Skip to content

Commit b26073c

Browse files
committed
Correct comments.
1 parent 14b80c3 commit b26073c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler/rustc_passes/src/stability.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn inherit_stability(def_kind: DefKind) -> bool {
124124
/// If the `-Z force-unstable-if-unmarked` flag is passed then we provide
125125
/// a parent stability annotation which indicates that this is private
126126
/// with the `rustc_private` feature. This is intended for use when
127-
/// compiling `librustc_*` crates themselves so we can leverage crates.io
127+
/// compiling library and `rustc_*` crates themselves so we can leverage crates.io
128128
/// while maintaining the invariant that all sysroot crates are unstable
129129
/// by default and are unable to be used.
130130
const FORCE_UNSTABLE: Stability = Stability {
@@ -248,13 +248,11 @@ fn lookup_const_stability(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<ConstSt
248248
});
249249
}
250250

251-
// Now that everything is computed, insert it into the table.
252251
if let Some(const_stab) = const_stab {
253252
return Some(const_stab);
254253
}
255254

256-
// `impl const Trait for Type` items forward their const stability to their
257-
// immediate children.
255+
// `impl const Trait for Type` items forward their const stability to their immediate children.
258256
// FIXME(const_trait_impl): how is this supposed to interact with `#[rustc_const_stable_indirect]`?
259257
// Currently, once that is set, we do not inherit anything from the parent any more.
260258
if inherit_const_stability(tcx, def_id) {

0 commit comments

Comments
 (0)