Skip to content

Commit a13f300

Browse files
committed
clarify comment
1 parent 67fe842 commit a13f300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_passes/src/stability.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
822822
if item_is_allowed {
823823
// Check parent modules stability as well if the item the path refers to is itself
824824
// stable. We only emit warnings for unstable path segments if the item is stable
825-
// because stability is often inherited, so the most common case is that both the
826-
// segments and the item are unstable behind the same feature flag.
825+
// or allowed because stability is often inherited, so the most common case is that
826+
// both the segments and the item are unstable behind the same feature flag.
827827
//
828828
// We check here rather than in `visit_path_segment` to prevent visiting the last
829829
// path segment twice

0 commit comments

Comments
 (0)