Skip to content

Commit

Permalink
Auto merge of rust-lang#6063 - joelgallant:rustdoc-edition-master, r=…
Browse files Browse the repository at this point in the history
…alexcrichton

Removes -Zunstable-options for rustdoc testing

See rust-lang#6062 - this is for master
  • Loading branch information
bors committed Sep 20, 2018
2 parents 0e3c5f2 + 2e9ea1e commit b1e1d38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/cargo/core/compiler/compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ impl<'cfg> Compilation<'cfg> {
pub fn rustdoc_process(&self, pkg: &Package, target: &Target) -> CargoResult<ProcessBuilder> {
let mut p = self.fill_env(process(&*self.config.rustdoc()?), pkg, false)?;
if target.edition() != Edition::Edition2015 {
p.arg("-Zunstable-options");
p.arg(format!("--edition={}", target.edition()));
}
Ok(p)
Expand Down
8 changes: 4 additions & 4 deletions tests/testsuite/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,12 @@ fn doc_edition() {

p.cargo("doc -v")
.masquerade_as_nightly_cargo()
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
.run();

p.cargo("test -v")
.masquerade_as_nightly_cargo()
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
.run();
}

Expand All @@ -1150,12 +1150,12 @@ fn doc_target_edition() {

p.cargo("doc -v")
.masquerade_as_nightly_cargo()
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
.run();

p.cargo("test -v")
.masquerade_as_nightly_cargo()
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
.run();
}

Expand Down

0 comments on commit b1e1d38

Please sign in to comment.