STABLE_FEATURES in rustc_lint::builtin - Rust
Description: The `stable_features` lint detects a `feature` attribute that has since been made stable.

Skip to main content

## STABLE_FEATURES

# Static STABLE_FEATURES

Source

    pub static STABLE_FEATURES: &'static Lint

Expand description

The `stable_features` lint detects a `feature` attribute that has since been made stable.

#### §Example

    #![feature(test_accepted_feature)]
    fn main() {}

{{produces}}

#### §Explanation

When a feature is stabilized, it is no longer necessary to include a `#![feature]` attribute for it. To fix, simply remove the `#![feature]` attribute.