Skip to content

Commit 4c9e87e

Browse files
committed
Stop generating compiler_builtins_lib doc
1 parent f9db3c2 commit 4c9e87e

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

src/tools/tidy/src/features.rs

-14
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ pub struct CollectedFeatures {
6363
pub fn collect_lib_features(base_src_path: &Path) -> Features {
6464
let mut lib_features = Features::new();
6565

66-
// This library feature is defined in the `compiler_builtins` crate, which
67-
// has been moved out-of-tree. Now it can no longer be auto-discovered by
68-
// `tidy`, because we need to filter out its (submodule) directory. Manually
69-
// add it to the set of known library features so we can still generate docs.
70-
lib_features.insert(
71-
"compiler_builtins_lib".to_owned(),
72-
Feature {
73-
level: Status::Unstable,
74-
since: None,
75-
has_gate_test: false,
76-
tracking_issue: None,
77-
},
78-
);
79-
8066
map_lib_features(base_src_path, &mut |res, _, _| {
8167
if let Ok((name, feature)) = res {
8268
lib_features.insert(name.to_owned(), feature);

src/tools/tidy/src/unstable_book.rs

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::features::{CollectedFeatures, Feature, Features, Status};
1+
use crate::features::{CollectedFeatures, Features, Status};
22
use std::collections::BTreeSet;
33
use std::fs;
44
use std::path::{Path, PathBuf};
@@ -73,26 +73,12 @@ fn collect_unstable_book_lib_features_section_file_names(base_src_path: &Path) -
7373

7474
pub fn check(path: &Path, features: CollectedFeatures, bad: &mut bool) {
7575
let lang_features = features.lang;
76-
let mut lib_features = features
76+
let lib_features = features
7777
.lib
7878
.into_iter()
7979
.filter(|&(ref name, _)| !lang_features.contains_key(name))
8080
.collect::<Features>();
8181

82-
// This library feature is defined in the `compiler_builtins` crate, which
83-
// has been moved out-of-tree. Now it can no longer be auto-discovered by
84-
// `tidy`, because we need to filter out its (submodule) directory. Manually
85-
// add it to the set of known library features so we can still generate docs.
86-
lib_features.insert(
87-
"compiler_builtins_lib".to_owned(),
88-
Feature {
89-
level: Status::Unstable,
90-
since: None,
91-
has_gate_test: false,
92-
tracking_issue: None,
93-
},
94-
);
95-
9682
// Library features
9783
let unstable_lib_feature_names = collect_unstable_feature_names(&lib_features);
9884
let unstable_book_lib_features_section_file_names =

0 commit comments

Comments
 (0)