| //! Module items, including the crate root and containing-module stability facts that consumers | |
| //! need when deciding whether a particular path is stable. | |
| #![feature(staged_api)] | |
| #![stable(feature = "stable_crate_feature", since = "1.0.0")] | |
| //@ is "$.index[?(@.name=='modules')].stability.feature" '"stable_crate_feature"' | |
| //@ is "$.index[?(@.name=='modules')].stability.level.stable.since" '"1.0.0"' | |
| pub mod inner_stable_module { | |
| #![stable(feature = "inner_stable_module_feature", since = "1.1.0")] | |
| //@ is "$.index[?(@.name=='inner_stable_module')].stability.feature" '"inner_stable_module_feature"' | |
| //@ is "$.index[?(@.name=='inner_stable_module')].stability.level.stable.since" '"1.1.0"' | |
| } | |
| #[unstable(feature = "unstable_module_feature", issue = "none")] | |
| pub mod unstable_module { | |
| //@ is "$.index[?(@.name=='unstable_module')].stability.level" '"unstable"' | |
| //@ is "$.index[?(@.name=='unstable_module')].stability.feature" '"unstable_module_feature"' | |
| } | |
| #[stable(feature = "stable_parent_feature", since = "2.0.0")] | |
| pub mod stable_parent { | |
| //@ is "$.index[?(@.name=='stable_parent')].stability.feature" '"stable_parent_feature"' | |
| //@ is "$.index[?(@.name=='stable_parent')].stability.level.stable.since" '"2.0.0"' | |
| //@ is "$.index[?(@.name=='UnstableChildInStable')].stability.level" '"unstable"' | |
| //@ is "$.index[?(@.name=='UnstableChildInStable')].stability.feature" '"unstable_child_in_stable"' | |
| #[unstable(feature = "unstable_child_in_stable", issue = "none")] | |
| pub struct UnstableChildInStable; | |
| } | |
| #[unstable(feature = "unstable_parent_feature", issue = "27")] | |
| pub mod unstable_parent { | |
| //@ is "$.index[?(@.name=='unstable_parent')].stability.level" '"unstable"' | |
| //@ is "$.index[?(@.name=='unstable_parent')].stability.feature" '"unstable_parent_feature"' | |
| //@ is "$.index[?(@.name=='StableChildInUnstable')].stability.feature" '"stable_child_in_unstable"' | |
| //@ is "$.index[?(@.name=='StableChildInUnstable')].stability.level.stable.since" '"3.0.0"' | |
| #[stable(feature = "stable_child_in_unstable", since = "3.0.0")] | |
| pub struct StableChildInUnstable; | |
| } |