Skip to content

Commit 3cfb6bc

Browse files
committed
Fix tidy fallout due to feature_gate.rs refactoring.
1 parent 6febb75 commit 3cfb6bc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/tools/tidy/src/features.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,14 @@ fn test_filen_gate(filen_underscore: &str, features: &mut Features) -> bool {
221221
}
222222

223223
pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
224-
let contents = t!(fs::read_to_string(base_src_path.join("libsyntax/feature_gate.rs")));
224+
let mut all = collect_lang_features_in(base_src_path, "active.rs", bad);
225+
all.extend(collect_lang_features_in(base_src_path, "accepted.rs", bad));
226+
all.extend(collect_lang_features_in(base_src_path, "removed.rs", bad));
227+
all
228+
}
229+
230+
fn collect_lang_features_in(base: &Path, file: &str, bad: &mut bool) -> Features {
231+
let contents = t!(fs::read_to_string(base.join("libsyntax/feature_gate").join(file)));
225232

226233
// We allow rustc-internal features to omit a tracking issue.
227234
// To make tidy accept omitting a tracking issue, group the list of features

0 commit comments

Comments
 (0)