Skip to content

Commit 4bc8fe8

Browse files
committed
remove unneeded nightly flags from various tests
1 parent 8529eb1 commit 4bc8fe8

File tree

6 files changed

+3
-19
lines changed

6 files changed

+3
-19
lines changed

tests/testsuite/cargo_env_config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ fn env_no_override() {
149149
)
150150
.build();
151151

152-
p.cargo("run -Zconfigurable-env")
153-
.masquerade_as_nightly_cargo()
152+
p.cargo("run")
154153
.with_stdout_contains("CARGO_PKG_NAME:unchanged")
155154
.run();
156155
}

tests/testsuite/features2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,6 @@ foo v0.1.0 [..]
23892389
// Importantly, this does not include `f1` on `common`.
23902390
p.cargo("tree -f")
23912391
.arg("{p} feats:{f}")
2392-
.masquerade_as_nightly_cargo()
23932392
.with_stdout(
23942393
"\
23952394
foo v0.1.0 [..]

tests/testsuite/fix.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,6 @@ fn fix_edition_2021() {
15631563
)
15641564
.build();
15651565
p.cargo("fix --edition --allow-no-vcs")
1566-
.masquerade_as_nightly_cargo()
15671566
.with_stderr(
15681567
"\
15691568
[CHECKING] foo v0.1.0 [..]
@@ -1745,7 +1744,6 @@ fn fix_with_run_cargo_in_proc_macros() {
17451744
)
17461745
.build();
17471746
p.cargo("fix --allow-no-vcs")
1748-
.masquerade_as_nightly_cargo()
17491747
.with_stderr_does_not_contain("error: could not find .rs file in rustc args")
17501748
.run();
17511749
}
@@ -1782,10 +1780,7 @@ fn non_edition_lint_migration() {
17821780
.with_stderr_contains("[..]unused_imports[..]")
17831781
.with_stderr_contains("[..]std::str::from_utf8[..]")
17841782
.run();
1785-
p.cargo("fix --edition --allow-no-vcs")
1786-
// Remove once --force-warn is stabilized
1787-
.masquerade_as_nightly_cargo()
1788-
.run();
1783+
p.cargo("fix --edition --allow-no-vcs").run();
17891784
let contents = p.read_file("src/lib.rs");
17901785
// Check it does not remove the "unused" import.
17911786
assert!(contents.contains("use std::str::from_utf8;"));

tests/testsuite/future_incompat_report.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,10 @@ fn color() {
282282
.run();
283283

284284
p.cargo("report future-incompatibilities")
285-
.masquerade_as_nightly_cargo()
286285
.with_stdout_does_not_contain("[..]\x1b[[..]")
287286
.run();
288287

289288
p.cargo("report future-incompatibilities")
290-
.masquerade_as_nightly_cargo()
291289
.env("CARGO_TERM_COLOR", "always")
292290
.with_stdout_contains("[..]\x1b[[..]")
293291
.run();
@@ -303,7 +301,6 @@ fn bad_ids() {
303301
let p = simple_project();
304302

305303
p.cargo("report future-incompatibilities --id 1")
306-
.masquerade_as_nightly_cargo()
307304
.with_status(101)
308305
.with_stderr("error: no reports are currently available")
309306
.run();
@@ -314,13 +311,11 @@ fn bad_ids() {
314311
.run();
315312

316313
p.cargo("report future-incompatibilities --id foo")
317-
.masquerade_as_nightly_cargo()
318314
.with_status(1)
319315
.with_stderr("error: Invalid value: could not parse `foo` as a number")
320316
.run();
321317

322318
p.cargo("report future-incompatibilities --id 7")
323-
.masquerade_as_nightly_cargo()
324319
.with_status(101)
325320
.with_stderr(
326321
"\
@@ -404,7 +399,6 @@ with_updates v1.0.0 has the following newer versions available: 1.0.1, 1.0.2, 3.
404399
.run();
405400

406401
p.cargo("report future-incompatibilities")
407-
.masquerade_as_nightly_cargo()
408402
.with_stdout_contains(update_message)
409403
.run()
410404
}

tests/testsuite/package_features.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,11 @@ fn virtual_no_default_features() {
7777
.run();
7878

7979
p.cargo("check --features a/dep,b/f1,b/f2,f2")
80-
.masquerade_as_nightly_cargo()
8180
.with_status(101)
8281
.with_stderr("[ERROR] none of the selected packages contains these features: a/dep, b/f2, f2, did you mean: a/dep1, f1?")
8382
.run();
8483

8584
p.cargo("check --features a/dep,a/dep1")
86-
.masquerade_as_nightly_cargo()
8785
.with_status(101)
8886
.with_stderr("[ERROR] none of the selected packages contains these features: a/dep, did you mean: b/f1?")
8987
.run();
@@ -107,7 +105,6 @@ fn virtual_typo_member_feature() {
107105
.file("src/lib.rs", "")
108106
.build()
109107
.cargo("check --features a/deny-warning")
110-
.masquerade_as_nightly_cargo()
111108
.with_status(101)
112109
.with_stderr(
113110
"[ERROR] none of the selected packages contains these features: a/deny-warning, did you mean: a/deny-warnings?",

tests/testsuite/profile_custom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ fn clean_custom_dirname() {
490490
)
491491
.run();
492492

493-
p.cargo("clean -p foo").masquerade_as_nightly_cargo().run();
493+
p.cargo("clean -p foo").run();
494494

495495
p.cargo("build --release")
496496
.with_stdout("")

0 commit comments

Comments
 (0)