Skip to content

Commit 46cd410

Browse files
committed
remove duplicate stubs
1 parent 91eb6fe commit 46cd410

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/doc/unstable-book/src/library-features/proc-macro.md

-7
This file was deleted.

src/tools/tidy/src/unstable_book.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ pub fn check(path: &path::Path, bad: &mut bool) {
8787
// Library features
8888

8989
let lang_features = collect_lang_features(path);
90-
let lib_features = collect_lib_features(path);
90+
let lib_features = collect_lib_features(path).iter().filter(|(name, _) {
91+
!lang_features.contains_key(name)
92+
}).collect();
9193

9294
let unstable_lib_feature_names = collect_unstable_feature_names(&lib_features);
9395
let unstable_book_lib_features_section_file_names =

src/tools/unstable-book-gen/src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ fn main() {
129129
let dest_path = Path::new(&dest_path_str).join("src");
130130

131131
let lang_features = collect_lang_features(src_path);
132-
let lib_features = collect_lib_features(src_path);
132+
let lib_features = collect_lib_features(src_path)
133+
.iter()
134+
.filter(|(name, _) {
135+
!lang_features.contains_key(name)
136+
}).collect();
133137

134138
let doc_src_path = src_path.join(PATH_STR);
135139

0 commit comments

Comments
 (0)