summary refs log tree commit diff
path: root/src/test/compile-fail/stable-features.rs
AgeCommit message (Collapse)AuthorLines
2016-05-30stable features lint warning mentions version stabilizedZack M. Davis-2/+2
To accomplish this, we alter the checks in `rustc::middle::stability` to use the `StabilityLevel` defined in `syntax::attr` (which includes the version in which the feature was stabilized) rather than the local `StabilityLevel` in the same module, and make the `declared_stable_lang_features` field of `syntax::feature_gate::Features` hold a Vec of feature-name, span tuples (in analogy to the `declared_lib_features` field) rather than just spans. This is in the matter of issue #33394.
2015-02-04Add a lint for writing `#[feature]` for stable features, warn by default.Brian Anderson-0/+20
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]`.