From a13f30036aed7151f77a04d227501bfb822c8cb5 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Sat, 7 May 2022 11:31:53 -0700 Subject: [PATCH] clarify comment --- compiler/rustc_passes/src/stability.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index 30f34d96f12..046fdc3dbf4 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -822,8 +822,8 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> { if item_is_allowed { // Check parent modules stability as well if the item the path refers to is itself // stable. We only emit warnings for unstable path segments if the item is stable - // because stability is often inherited, so the most common case is that both the - // segments and the item are unstable behind the same feature flag. + // or allowed because stability is often inherited, so the most common case is that + // both the segments and the item are unstable behind the same feature flag. // // We check here rather than in `visit_path_segment` to prevent visiting the last // path segment twice