Skip to content

Commit b1e1d38

Browse files
committed
Auto merge of #6063 - joelgallant:rustdoc-edition-master, r=alexcrichton
Removes -Zunstable-options for rustdoc testing See #6062 - this is for master
2 parents 0e3c5f2 + 2e9ea1e commit b1e1d38

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/cargo/core/compiler/compilation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ impl<'cfg> Compilation<'cfg> {
140140
pub fn rustdoc_process(&self, pkg: &Package, target: &Target) -> CargoResult<ProcessBuilder> {
141141
let mut p = self.fill_env(process(&*self.config.rustdoc()?), pkg, false)?;
142142
if target.edition() != Edition::Edition2015 {
143-
p.arg("-Zunstable-options");
144143
p.arg(format!("--edition={}", target.edition()));
145144
}
146145
Ok(p)

tests/testsuite/doc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,12 +1118,12 @@ fn doc_edition() {
11181118

11191119
p.cargo("doc -v")
11201120
.masquerade_as_nightly_cargo()
1121-
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
1121+
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11221122
.run();
11231123

11241124
p.cargo("test -v")
11251125
.masquerade_as_nightly_cargo()
1126-
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
1126+
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11271127
.run();
11281128
}
11291129

@@ -1150,12 +1150,12 @@ fn doc_target_edition() {
11501150

11511151
p.cargo("doc -v")
11521152
.masquerade_as_nightly_cargo()
1153-
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
1153+
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11541154
.run();
11551155

11561156
p.cargo("test -v")
11571157
.masquerade_as_nightly_cargo()
1158-
.with_stderr_contains("[RUNNING] `rustdoc [..]-Zunstable-options --edition=2018[..]")
1158+
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11591159
.run();
11601160
}
11611161

0 commit comments

Comments
 (0)