Skip to content

Commit 29c17fc

Browse files
authored
Rollup merge of #135221 - Urgau:replace-in-stable-book, r=pietroalbini
Include rustc and rustdoc book in replace-version-placeholder This PR includes the *(stable)* rustc and rustdoc books which might contain `CURRENT_RUSTC_VERSION` that should be replaced when branching beta. Include them so they are not forgotten. I didn't include any other folder or books as they don't strike me as relevant for it and might be problematic in the future if some of the submodules are turned into subtree, because we have places where we wouldn't want to replace them. cf. #135163 (comment) cc `@pietroalbini`
2 parents bbf6363 + eadb76e commit 29c17fc

File tree

1 file changed

+6
-1
lines changed
  • src/tools/replace-version-placeholder/src

1 file changed

+6
-1
lines changed

src/tools/replace-version-placeholder/src/main.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ fn main() {
1010
let version_str = t!(std::fs::read_to_string(&version_path), version_path);
1111
let version_str = version_str.trim();
1212
walk::walk_many(
13-
&[&root_path.join("compiler"), &root_path.join("library")],
13+
&[
14+
&root_path.join("compiler"),
15+
&root_path.join("library"),
16+
&root_path.join("src/doc/rustc"),
17+
&root_path.join("src/doc/rustdoc"),
18+
],
1419
|path, _is_dir| walk::filter_dirs(path),
1520
&mut |entry, contents| {
1621
if !contents.contains(VERSION_PLACEHOLDER) {

0 commit comments

Comments
 (0)