]> git.lizzy.rs Git - rust.git/commit
Add a lint for writing `#[feature]` for stable features, warn by default.
authorBrian Anderson <banderson@mozilla.com>
Tue, 3 Feb 2015 04:25:42 +0000 (20:25 -0800)
committerBrian Anderson <banderson@mozilla.com>
Thu, 5 Feb 2015 07:18:24 +0000 (23:18 -0800)
commit456d23e73ee5d8c22b67336061ed7b457742d7ff
treef7dae7a2172d56835c9df818c6b50c52985a5217
parentba2f13ef0667ce90f55ab0f1506bf5ee7b852d96
Add a lint for writing `#[feature]` for stable features, warn by default.

The 'stable_features' lint helps people progress from unstable to
stable Rust by telling them when they no longer need a `feature`
attribute because upstream Rust has declared it stable.

This compares to the existing 'unstable_features', which is used
to implement feature staging, and triggers on *any* use
of `#[feature]`.
src/librustc/lint/builtin.rs
src/librustc/middle/stability.rs
src/librustc_driver/driver.rs
src/libsyntax/feature_gate.rs
src/test/compile-fail/gated-bad-feature.rs
src/test/compile-fail/stable-features.rs [new file with mode: 0644]