Rollup merge of #152188 - cuviper:placeholder-stdarch, r=Mark-Simulacrum
Include `library/stdarch` for `CURRENT_RUSTC_VERSION` updates Our tool `replace-version-placeholder` uses the `tidy` file walker and its directory filter, but that skips `library/stdarch` which we do need for public stability markers. This PR adds a local filter function that explicitly allows that path. The commit for 1.94 `stdarch` updates is coming from beta rust-lang/rust#152187.
This commit is contained in:
commit
ef776c603c
12 changed files with 1228 additions and 1222 deletions
|
|
@ -123,7 +123,7 @@ declare_with_version! { RENAMED(RENAMED_VERSION) = [
|
|||
("clippy::into_iter_on_array", "array_into_iter"),
|
||||
#[clippy::version = ""]
|
||||
("clippy::invalid_atomic_ordering", "invalid_atomic_ordering"),
|
||||
#[clippy::version = "CURRENT_RUSTC_VERSION"]
|
||||
#[clippy::version = "1.88.0"]
|
||||
("clippy::invalid_null_ptr_usage", "invalid_null_arguments"),
|
||||
#[clippy::version = ""]
|
||||
("clippy::invalid_ref", "invalid_value"),
|
||||
|
|
|
|||
|
|
@ -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