Stability checker doesn't recurse down reexports properly #21905
Labels
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
F-staged_api
`#![feature(staged_api)]`
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
stability.rs:
test.rs:
#[unstable]
is inherited through mods (only#[stable]
isn't inherited). However, in this particular case, the inheritance doesn't cross the reexport.A more concrete example is the
hash_state
module. Chris fixed the stability of its items in this PR, however the module itself was private and reexported as an#[unstable]
module before the PR. Yet, usage of items within thehash_state
module were broken before the PR.This seems wrong,
#[unstable]
(and the others, except#[stable]
) should be inherited downpub use
s.cc @brson
The text was updated successfully, but these errors were encountered: