Skip to content

Commit 2fc6b3e

Browse files
revert b1d6a7e changes
1 parent 7b92554 commit 2fc6b3e

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

tests/testsuite/build.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,10 +3938,6 @@ fn inferred_benchmarks() {
39383938

39393939
#[test]
39403940
fn target_edition() {
3941-
if !is_nightly() {
3942-
// --edition is nightly-only
3943-
return;
3944-
}
39453941
let p = project()
39463942
.file(
39473943
"Cargo.toml",
@@ -3957,6 +3953,7 @@ fn target_edition() {
39573953
.build();
39583954

39593955
p.cargo("build -v")
3956+
.without_status() // passes on nightly, fails on stable, b/c --edition is nightly-only
39603957
.with_stderr_contains(
39613958
"\
39623959
[COMPILING] foo v0.0.1 ([..])

tests/testsuite/package.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -932,10 +932,6 @@ fn package_two_kinds_of_deps() {
932932

933933
#[test]
934934
fn test_edition() {
935-
if !is_nightly() {
936-
// --edition is nightly-only
937-
return;
938-
}
939935
let p = project()
940936
.file(
941937
"Cargo.toml",
@@ -951,10 +947,11 @@ fn test_edition() {
951947
.build();
952948

953949
p.cargo("build -v").masquerade_as_nightly_cargo()
954-
// --edition is still in flux and we're not passing -Zunstable-options
955-
// from Cargo so it will probably error. Only partially match the output
956-
// until stuff stabilizes
957-
.with_stderr_contains("\
950+
.without_status() // passes on nightly, fails on stable, b/c --edition is nightly-only
951+
// --edition is still in flux and we're not passing -Zunstable-options
952+
// from Cargo so it will probably error. Only partially match the output
953+
// until stuff stabilizes
954+
.with_stderr_contains("\
958955
[COMPILING] foo v0.0.1 ([..])
959956
[RUNNING] `rustc [..]--edition=2018 [..]
960957
").run();

0 commit comments

Comments
 (0)