File tree 2 files changed +2
-30
lines changed
2 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -63,20 +63,6 @@ pub struct CollectedFeatures {
63
63
pub fn collect_lib_features ( base_src_path : & Path ) -> Features {
64
64
let mut lib_features = Features :: new ( ) ;
65
65
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
-
80
66
map_lib_features ( base_src_path, & mut |res, _, _| {
81
67
if let Ok ( ( name, feature) ) = res {
82
68
lib_features. insert ( name. to_owned ( ) , feature) ;
Original file line number Diff line number Diff line change 1
- use crate :: features:: { CollectedFeatures , Feature , Features , Status } ;
1
+ use crate :: features:: { CollectedFeatures , Features , Status } ;
2
2
use std:: collections:: BTreeSet ;
3
3
use std:: fs;
4
4
use std:: path:: { Path , PathBuf } ;
@@ -73,26 +73,12 @@ fn collect_unstable_book_lib_features_section_file_names(base_src_path: &Path) -
73
73
74
74
pub fn check ( path : & Path , features : CollectedFeatures , bad : & mut bool ) {
75
75
let lang_features = features. lang ;
76
- let mut lib_features = features
76
+ let lib_features = features
77
77
. lib
78
78
. into_iter ( )
79
79
. filter ( |& ( ref name, _) | !lang_features. contains_key ( name) )
80
80
. collect :: < Features > ( ) ;
81
81
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
-
96
82
// Library features
97
83
let unstable_lib_feature_names = collect_unstable_feature_names ( & lib_features) ;
98
84
let unstable_book_lib_features_section_file_names =
You can’t perform that action at this time.
0 commit comments