Skip to content

Commit 89d2748

Browse files
committed
Revert "Work around rust-lang#5134 for now"
This reverts commit d46db71.
1 parent 3e07a3e commit 89d2748

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/testsuite/build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5426,11 +5426,9 @@ fn avoid_dev_deps() {
54265426
.file("src/main.rs", "fn main() {}")
54275427
.build();
54285428

5429-
// --bins is needed because of #5134
5430-
assert_that(p.cargo("build").arg("--bins"), execs().with_status(101));
5429+
assert_that(p.cargo("build"), execs().with_status(101));
54315430
assert_that(
54325431
p.cargo("build")
5433-
.arg("--bins")
54345432
.masquerade_as_nightly_cargo()
54355433
.arg("-Zavoid-dev-deps"),
54365434
execs().with_status(0),

tests/testsuite/install.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,9 +1222,8 @@ fn dev_dependencies_no_check() {
12221222
.file("src/main.rs", "fn main() {}")
12231223
.build();
12241224

1225-
// --bins is needed because of #5134
1226-
assert_that(p.cargo("build").arg("--bins"), execs().with_status(101));
1227-
assert_that(p.cargo("install").arg("--bins"), execs().with_status(0));
1225+
assert_that(p.cargo("build"), execs().with_status(101));
1226+
assert_that(p.cargo("install"), execs().with_status(0));
12281227
}
12291228

12301229
#[test]
@@ -1256,10 +1255,9 @@ fn dev_dependencies_lock_file_untouched() {
12561255
.file("a/src/lib.rs", "")
12571256
.build();
12581257

1259-
// --bins is needed because of #5134
1260-
assert_that(p.cargo("build").arg("--bins"), execs().with_status(0));
1258+
assert_that(p.cargo("build"), execs().with_status(0));
12611259
let lock = p.read_lockfile();
1262-
assert_that(p.cargo("install").arg("--bins"), execs().with_status(0));
1260+
assert_that(p.cargo("install"), execs().with_status(0));
12631261
let lock2 = p.read_lockfile();
12641262
assert!(lock == lock2, "different lockfiles");
12651263
}

0 commit comments

Comments
 (0)