Skip to content

Commit af4a78b

Browse files
committed
rustbuild: Allow using unstable rustdoc features on beta
I believe this was forgotten from rust-lang#45191 but hopefully is a simple fix!
1 parent e11100d commit af4a78b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/builder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ impl<'a> Builder<'a> {
419419
.env("RUSTC_LIBDIR", self.sysroot_libdir(compiler, self.build.build))
420420
.env("CFG_RELEASE_CHANNEL", &self.build.config.channel)
421421
.env("RUSTDOC_REAL", self.rustdoc(host))
422-
.env("RUSTDOC_CRATE_VERSION", self.build.rust_version());
422+
.env("RUSTDOC_CRATE_VERSION", self.build.rust_version())
423+
.env("RUSTC_BOOTSTRAP", "1");
423424
if let Some(linker) = self.build.linker(host) {
424425
cmd.env("RUSTC_TARGET_LINKER", linker);
425426
}

0 commit comments

Comments
 (0)