Skip to content

Commit 7f79ceb

Browse files
committed
Compile rustc_driver by default
1 parent 343ad6f commit 7f79ceb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/doc.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ impl Step for Rustc {
667667
/// Compiler documentation is distributed separately, so we make sure
668668
/// we do not merge it with the other documentation from std, test and
669669
/// proc_macros. This is largely just a wrapper around `cargo doc`.
670-
fn run(self, builder: &Builder<'_>) {
670+
fn run(mut self, builder: &Builder<'_>) {
671671
let stage = self.stage;
672672
let target = self.target;
673673

@@ -725,6 +725,11 @@ impl Step for Rustc {
725725
cargo.rustdocflag("ena=https://docs.rs/ena/latest/");
726726

727727
let mut to_open = None;
728+
729+
if self.crates.is_empty() {
730+
self.crates = INTERNER.intern_list(vec!["rustc_driver".to_owned()]);
731+
};
732+
728733
for krate in &*self.crates {
729734
// Create all crate output directories first to make sure rustdoc uses
730735
// relative links.

0 commit comments

Comments
 (0)