Include library/stdarch for CURRENT_RUSTC_VERSION updates
This commit is contained in:
parent
ec3de4bac5
commit
dd322a0425
1 changed files with 7 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ fn main() {
|
|||
&root_path.join("src/doc/rustc"),
|
||||
&root_path.join("src/doc/rustdoc"),
|
||||
],
|
||||
|path, _is_dir| walk::filter_dirs(path),
|
||||
|path, _is_dir| filter_dirs(path),
|
||||
&mut |entry, contents| {
|
||||
if !contents.contains(VERSION_PLACEHOLDER) {
|
||||
return;
|
||||
|
|
@ -27,3 +27,9 @@ fn main() {
|
|||
},
|
||||
);
|
||||
}
|
||||
|
||||
fn filter_dirs(path: &std::path::Path) -> bool {
|
||||
// tidy would skip some paths that we do want to process
|
||||
let allow = ["library/stdarch"];
|
||||
walk::filter_dirs(path) && !allow.iter().any(|p| path.ends_with(p))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue