diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2019-09-09 10:17:38 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2019-09-23 09:34:44 -0700 |
| commit | 0b6766d8d7461a1a8d632ff62ba2024be87fed76 (patch) | |
| tree | f4bb04ece502e2bbaa0a80f758ad5a6b815a30aa /src/bootstrap/doc.rs | |
| parent | 5cc6eb40827c5a03c378766770c1320ac73d13ed (diff) | |
| download | rust-0b6766d8d7461a1a8d632ff62ba2024be87fed76.tar.gz rust-0b6766d8d7461a1a8d632ff62ba2024be87fed76.zip | |
Allow adding `RUSTFLAGS` after `Builder::cargo`
This commit changes the return type of `Builder::cargo` to return a builder that allows dynamically adding more `RUSTFLAGS` values after-the-fact. While not used yet, this will later be used to delete more of `rustc.rs`
Diffstat (limited to 'src/bootstrap/doc.rs')
| -rw-r--r-- | src/bootstrap/doc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 873a3c31d15..4ee8cd2485c 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -475,7 +475,7 @@ impl Step for Std { .arg("--resource-suffix").arg(crate::channel::CFG_RELEASE_NUM) .arg("--index-page").arg(&builder.src.join("src/doc/index.md")); - builder.run(&mut cargo); + builder.run(&mut cargo.into()); }; for krate in &["alloc", "core", "std", "proc_macro", "test"] { run_cargo_rustdoc_for(krate); @@ -561,7 +561,7 @@ impl Step for Rustc { cargo.arg("-p").arg(krate); } - builder.run(&mut cargo); + builder.run(&mut cargo.into()); } } @@ -656,7 +656,7 @@ impl Step for Rustdoc { cargo.arg("-p").arg("rustdoc"); cargo.env("RUSTDOCFLAGS", "--document-private-items"); - builder.run(&mut cargo); + builder.run(&mut cargo.into()); } } |
