Skip to main content

INEFFECTIVE_UNSTABLE_REEXPORTS

Static INEFFECTIVE_UNSTABLE_REEXPORTS 

Source
pub static INEFFECTIVE_UNSTABLE_REEXPORTS: &Lint
Expand description

The ineffective_unstable_reexports lint detects #[unstable] attributes on re-exports where the attribute does not make the re-exported path unstable.

§Example

 #![feature(staged_api)]
 #![stable(feature = "test", since = "1.0.0")]

 #[stable(feature = "test", since = "1.0.0")]
 pub struct S;

 #[unstable(feature = "reexport", issue = "none")]
 pub use self::S as T;

 fn main() {}

{{produces}}

§Explanation

#[unstable] on a re-export does not make a stable path unstable re-exports inside unstable modules are already on an unstable path