We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_some_and
1 parent c7cb822 commit 8af769dCopy full SHA for 8af769d
src/librustdoc/passes/propagate_stability.rs
@@ -110,8 +110,7 @@ fn merge_stability(
110
} else if let Some(mut own_stab) = own_stability
111
&& let StabilityLevel::Stable { since, allowed_through_unstable_modules: true } =
112
own_stab.level
113
- && let Some(parent_stab) = parent_stability
114
- && parent_stab.is_stable()
+ && parent_stability.is_some_and(|stab| stab.is_stable())
115
{
116
// this property does not apply transitively through re-exports
117
own_stab.level = StabilityLevel::Stable { since, allowed_through_unstable_modules: false };
0 commit comments