clarify comment
This commit is contained in:
parent
67fe8423a3
commit
a13f30036a
@ -822,8 +822,8 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
|
|||||||
if item_is_allowed {
|
if item_is_allowed {
|
||||||
// Check parent modules stability as well if the item the path refers to is itself
|
// 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
|
// 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
|
// or allowed because stability is often inherited, so the most common case is that
|
||||||
// segments and the item are unstable behind the same feature flag.
|
// 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
|
// We check here rather than in `visit_path_segment` to prevent visiting the last
|
||||||
// path segment twice
|
// path segment twice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user