Skip to content

Commit 9d0946a

Browse files
committed
Tell tidy about compiler_builtins_lib feature
After the work in #42899, it no longer auto-discovers it.
1 parent 344f01c commit 9d0946a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/tools/tidy/src/features.rs

+12
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,18 @@ pub fn collect_lang_features(base_src_path: &Path) -> Features {
219219

220220
pub fn collect_lib_features(base_src_path: &Path) -> Features {
221221
let mut lib_features = Features::new();
222+
223+
// This library feature is defined in the `compiler_builtins` crate, which
224+
// has been moved out-of-tree. Now it can no longer be auto-discovered by
225+
// `tidy`, because we need to filter out its (submodule) directory. Manually
226+
// add it to the set of known library features so we can still generate docs.
227+
lib_features.insert("compiler_builtins_lib".to_owned(), Feature {
228+
level: Status::Unstable,
229+
since: "".to_owned(),
230+
has_gate_test: false,
231+
tracking_issue: None,
232+
});
233+
222234
map_lib_features(base_src_path,
223235
&mut |res, _, _| {
224236
match res {

0 commit comments

Comments
 (0)