diff options
| author | Joe Ranweiler <joe@lemma.co> | 2017-07-20 15:05:10 -0700 |
|---|---|---|
| committer | Joe Ranweiler <joe@lemma.co> | 2017-07-20 21:49:05 -0700 |
| commit | 9d0946acd0fe0498456ff7a0da208b546d9683b7 (patch) | |
| tree | e6a5c6364c40a07e928f403f3d5e84e716688f44 | |
| parent | 344f01cf1322d61bad109b503d0e6a1b55d6ed31 (diff) | |
| download | rust-9d0946acd0fe0498456ff7a0da208b546d9683b7.tar.gz rust-9d0946acd0fe0498456ff7a0da208b546d9683b7.zip | |
Tell `tidy` about `compiler_builtins_lib` feature
After the work in #42899, it no longer auto-discovers it.
| -rw-r--r-- | src/tools/tidy/src/features.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 4c94ade98d9..301f0d1d80b 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -219,6 +219,18 @@ pub fn collect_lang_features(base_src_path: &Path) -> Features { pub fn collect_lib_features(base_src_path: &Path) -> Features { let mut lib_features = Features::new(); + + // This library feature is defined in the `compiler_builtins` crate, which + // has been moved out-of-tree. Now it can no longer be auto-discovered by + // `tidy`, because we need to filter out its (submodule) directory. Manually + // add it to the set of known library features so we can still generate docs. + lib_features.insert("compiler_builtins_lib".to_owned(), Feature { + level: Status::Unstable, + since: "".to_owned(), + has_gate_test: false, + tracking_issue: None, + }); + map_lib_features(base_src_path, &mut |res, _, _| { match res { |
