diff options
| author | tinaun <tinagma@gmail.com> | 2017-10-13 02:00:45 -0400 |
|---|---|---|
| committer | tinaun <tinagma@gmail.com> | 2017-10-13 02:09:22 -0400 |
| commit | 46cd4103818c573ca0ca9cf450ae1a006dca27bf (patch) | |
| tree | c94c1d5b501149de09f5a015885134352277b688 /src | |
| parent | 91eb6fe56d6df4a66f11bd3e79f08f74aacbd164 (diff) | |
remove duplicate stubs
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/library-features/proc-macro.md | 7 | ||||
| -rw-r--r-- | src/tools/tidy/src/unstable_book.rs | 4 | ||||
| -rw-r--r-- | src/tools/unstable-book-gen/src/main.rs | 6 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/doc/unstable-book/src/library-features/proc-macro.md b/src/doc/unstable-book/src/library-features/proc-macro.md deleted file mode 100644 index 19e7f663c7a..00000000000 --- a/src/doc/unstable-book/src/library-features/proc-macro.md +++ /dev/null @@ -1,7 +0,0 @@ -# `proc_macro` - -The tracking issue for this feature is: [#38356] - -[#38356]: https://github.com/rust-lang/rust/issues/38356 - ------------------------- diff --git a/src/tools/tidy/src/unstable_book.rs b/src/tools/tidy/src/unstable_book.rs index ff032b14ad1..e8eac0b8703 100644 --- a/src/tools/tidy/src/unstable_book.rs +++ b/src/tools/tidy/src/unstable_book.rs @@ -87,7 +87,9 @@ pub fn check(path: &path::Path, bad: &mut bool) { // Library features let lang_features = collect_lang_features(path); - let lib_features = collect_lib_features(path); + let lib_features = collect_lib_features(path).iter().filter(|(name, _) { + !lang_features.contains_key(name) + }).collect(); let unstable_lib_feature_names = collect_unstable_feature_names(&lib_features); let unstable_book_lib_features_section_file_names = diff --git a/src/tools/unstable-book-gen/src/main.rs b/src/tools/unstable-book-gen/src/main.rs index 5c2bd1e3e08..189f69ab7cb 100644 --- a/src/tools/unstable-book-gen/src/main.rs +++ b/src/tools/unstable-book-gen/src/main.rs @@ -129,7 +129,11 @@ fn main() { let dest_path = Path::new(&dest_path_str).join("src"); let lang_features = collect_lang_features(src_path); - let lib_features = collect_lib_features(src_path); + let lib_features = collect_lib_features(src_path) + .iter() + .filter(|(name, _) { + !lang_features.contains_key(name) + }).collect(); let doc_src_path = src_path.join(PATH_STR); |
