diff options
| author | Jane Lusby <jlusby@yaah.dev> | 2022-05-07 11:31:53 -0700 |
|---|---|---|
| committer | Jane Losare-Lusby <jlusby@yaah.dev> | 2022-07-08 21:18:15 +0000 |
| commit | a13f30036aed7151f77a04d227501bfb822c8cb5 (patch) | |
| tree | aaa3fef67e7a1637547fc6bf6c00e0e33e1cbbc4 /compiler/rustc_passes/src | |
| parent | 67fe8423a358e03a661d2c18e643572db4e00157 (diff) | |
| download | rust-a13f30036aed7151f77a04d227501bfb822c8cb5.tar.gz rust-a13f30036aed7151f77a04d227501bfb822c8cb5.zip | |
clarify comment
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 4 |
1 files 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 |
