diff options
| author | est31 <MTest31@outlook.com> | 2017-01-11 02:20:30 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-01-12 23:53:02 +0100 |
| commit | 6795ddf342ceffc155be3a587dac9951269ef7f8 (patch) | |
| tree | 86da239c34b3a05cd7bd054dca52a1b315662359 /src | |
| parent | 0bcd3b2e7903ef3664176133544fe11af6fcdfb3 (diff) | |
| download | rust-6795ddf342ceffc155be3a587dac9951269ef7f8.tar.gz rust-6795ddf342ceffc155be3a587dac9951269ef7f8.zip | |
Don't require gate tests for removed features
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/tidy/src/features.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 15763778d92..8e14bcdebc8 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -16,7 +16,7 @@ //! * The set of library features is disjoint from the set of language features //! * Library features have at most one stability level //! * Library features have at most one `since` value -//! * All stability attributes have tests to ensure they are actually stable/unstable +//! * All unstable lang features have tests to ensure they are actually unstable use std::collections::HashMap; use std::fmt; @@ -27,6 +27,7 @@ use std::path::Path; #[derive(PartialEq)] enum Status { Stable, + Removed, Unstable, } @@ -35,6 +36,7 @@ impl fmt::Display for Status { let as_str = match *self { Status::Stable => "stable", Status::Unstable => "unstable", + Status::Removed => "removed", }; fmt::Display::fmt(as_str, f) } @@ -221,7 +223,7 @@ fn collect_lang_features(path: &Path) -> HashMap<String, Feature> { let mut parts = line.trim().split(","); let level = match parts.next().map(|l| l.trim().trim_left_matches('(')) { Some("active") => Status::Unstable, - Some("removed") => Status::Unstable, + Some("removed") => Status::Removed, Some("accepted") => Status::Stable, _ => return None, }; |
