Skip to main content

Module propagate_stability

Module propagate_stability 

Source
Expand description

Propagates stability to child items.

The purpose of this pass is to make items whose parents are β€œmore unstable” than the item itself inherit the parent’s stability. For example, core::error::Error is marked as stable since 1.0.0, but the core::error module is marked as stable since 1.81.0, so we want to show core::error::Error as stable since 1.81.0 as well.

Re-exportsΒ§

use rustc_attr_ir::Stability; πŸ”’
use rustc_attr_ir::StabilityLevel; πŸ”’
use rustc_hir::def_id::CRATE_DEF_ID; πŸ”’
use crate::clean::Crate; πŸ”’
use crate::clean::Item; πŸ”’
use crate::clean::ItemId; πŸ”’
use crate::clean::ItemKind; πŸ”’
use crate::core::DocContext; πŸ”’
use crate::fold::DocFolder; πŸ”’

StructsΒ§

StabilityPropagator πŸ”’

FunctionsΒ§

merge_stability πŸ”’
propagate_stability πŸ”’