Skip to content

Commit 3c43163

Browse files
Explain why we subtract one from the stage
1 parent cb27faf commit 3c43163

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/tool.rs

+3
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ impl Step for Rustdoc {
249249
let build_compiler = if target_compiler.stage == 0 {
250250
target_compiler
251251
} else {
252+
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
253+
// we'd have stageN/bin/rustc and stageN/bin/rustdoc be effectively different stage
254+
// compilers, which isn't what we want.
252255
builder.compiler(target_compiler.stage - 1, target_compiler.host)
253256
};
254257

0 commit comments

Comments
 (0)