mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 11:04:03 +00:00
prevent generating duplicate stubs
This commit is contained in:
parent
46cd410381
commit
5c25b0c594
@ -87,7 +87,7 @@ 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).iter().filter(|(name, _) {
|
||||
let lib_features = collect_lib_features(path).into_iter().filter(|&(ref name, _)| {
|
||||
!lang_features.contains_key(name)
|
||||
}).collect();
|
||||
|
||||
|
@ -129,11 +129,9 @@ 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)
|
||||
.iter()
|
||||
.filter(|(name, _) {
|
||||
!lang_features.contains_key(name)
|
||||
}).collect();
|
||||
let lib_features = collect_lib_features(src_path).into_iter().filter(|&(ref name, _)| {
|
||||
!lang_features.contains_key(name)
|
||||
}).collect();
|
||||
|
||||
let doc_src_path = src_path.join(PATH_STR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user