Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 29c17fc

Browse files
authoredJan 9, 2025
Rollup merge of rust-lang#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. rust-lang#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)
Failed to load comments.