Skip to content

Commit 4034d1d

Browse files
committed
Auto merge of #6923 - ehuss:remove-unnecessary-masquerade, r=alexcrichton
Remove unnecessary calls to masquerade_as_nightly_cargo. These are not needed anymore.
2 parents 6fc356e + 87449f4 commit 4034d1d

File tree

7 files changed

+6
-38
lines changed

7 files changed

+6
-38
lines changed

tests/testsuite/doc.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,6 @@ fn doc_edition() {
11411141
.file(
11421142
"Cargo.toml",
11431143
r#"
1144-
cargo-features = ["edition"]
11451144
[package]
11461145
name = "foo"
11471146
version = "0.0.1"
@@ -1153,12 +1152,10 @@ fn doc_edition() {
11531152
.build();
11541153

11551154
p.cargo("doc -v")
1156-
.masquerade_as_nightly_cargo()
11571155
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11581156
.run();
11591157

11601158
p.cargo("test -v")
1161-
.masquerade_as_nightly_cargo()
11621159
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11631160
.run();
11641161
}
@@ -1169,7 +1166,6 @@ fn doc_target_edition() {
11691166
.file(
11701167
"Cargo.toml",
11711168
r#"
1172-
cargo-features = ["edition"]
11731169
[package]
11741170
name = "foo"
11751171
version = "0.0.1"
@@ -1183,12 +1179,10 @@ fn doc_target_edition() {
11831179
.build();
11841180

11851181
p.cargo("doc -v")
1186-
.masquerade_as_nightly_cargo()
11871182
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11881183
.run();
11891184

11901185
p.cargo("test -v")
1191-
.masquerade_as_nightly_cargo()
11921186
.with_stderr_contains("[RUNNING] `rustdoc [..]--edition=2018[..]")
11931187
.run();
11941188
}

tests/testsuite/edition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ fn edition_works_for_build_script() {
2828
.file("a/src/lib.rs", "pub fn foo() {}")
2929
.build();
3030

31-
p.cargo("build -v").masquerade_as_nightly_cargo().run();
31+
p.cargo("build -v").run();
3232
}

tests/testsuite/fix.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,7 @@ fn fix_idioms() {
930930
fn idioms_2015_ok() {
931931
let p = project().file("src/lib.rs", "").build();
932932

933-
p.cargo("fix --edition-idioms --allow-no-vcs")
934-
.masquerade_as_nightly_cargo()
935-
.run();
933+
p.cargo("fix --edition-idioms --allow-no-vcs").run();
936934
}
937935

938936
#[test]

tests/testsuite/install.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,6 @@ fn installs_from_cwd_with_2018_warnings() {
780780
.file(
781781
"Cargo.toml",
782782
r#"
783-
cargo-features = ["edition"]
784-
785783
[package]
786784
name = "foo"
787785
version = "0.1.0"
@@ -793,7 +791,6 @@ fn installs_from_cwd_with_2018_warnings() {
793791
.build();
794792

795793
p.cargo("install")
796-
.masquerade_as_nightly_cargo()
797794
.with_status(101)
798795
.with_stderr_contains(
799796
"error: Using `cargo install` to install the binaries for the \

tests/testsuite/metadata.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,8 +1208,6 @@ fn package_edition_2018() {
12081208
.file(
12091209
"Cargo.toml",
12101210
r#"
1211-
cargo-features = ["edition"]
1212-
12131211
[package]
12141212
name = "foo"
12151213
version = "0.1.0"
@@ -1219,7 +1217,6 @@ fn package_edition_2018() {
12191217
)
12201218
.build();
12211219
p.cargo("metadata")
1222-
.masquerade_as_nightly_cargo()
12231220
.with_json(
12241221
r#"
12251222
{
@@ -1291,8 +1288,6 @@ fn target_edition_2018() {
12911288
.file(
12921289
"Cargo.toml",
12931290
r#"
1294-
cargo-features = ["edition"]
1295-
12961291
[package]
12971292
name = "foo"
12981293
version = "0.1.0"
@@ -1305,7 +1300,6 @@ fn target_edition_2018() {
13051300
)
13061301
.build();
13071302
p.cargo("metadata")
1308-
.masquerade_as_nightly_cargo()
13091303
.with_json(
13101304
r#"
13111305
{
@@ -1389,8 +1383,6 @@ fn rename_dependency() {
13891383
.file(
13901384
"Cargo.toml",
13911385
r#"
1392-
cargo-features = ["rename-dependency"]
1393-
13941386
[project]
13951387
name = "foo"
13961388
version = "0.0.1"
@@ -1405,7 +1397,6 @@ fn rename_dependency() {
14051397
.build();
14061398

14071399
p.cargo("metadata")
1408-
.masquerade_as_nightly_cargo()
14091400
.with_json(
14101401
r#"
14111402
{

tests/testsuite/package.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,7 @@ fn generated_manifest() {
795795
.file("bar/src/lib.rs", "")
796796
.build();
797797

798-
p.cargo("package --no-verify")
799-
.masquerade_as_nightly_cargo()
800-
.run();
798+
p.cargo("package --no-verify").run();
801799

802800
let f = File::open(&p.root().join("target/package/foo-0.0.1.crate")).unwrap();
803801
let rewritten_toml = format!(
@@ -949,11 +947,6 @@ fn test_edition() {
949947
.build();
950948

951949
p.cargo("build -v")
952-
.masquerade_as_nightly_cargo()
953-
.without_status() // passes on nightly, fails on stable, b/c --edition is nightly-only
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
957950
.with_stderr_contains(
958951
"\
959952
[COMPILING] foo v0.0.1 ([..])
@@ -1086,9 +1079,7 @@ fn package_with_select_features() {
10861079
)
10871080
.build();
10881081

1089-
p.cargo("package --features required")
1090-
.masquerade_as_nightly_cargo()
1091-
.run();
1082+
p.cargo("package --features required").run();
10921083
}
10931084

10941085
#[test]
@@ -1117,9 +1108,7 @@ fn package_with_all_features() {
11171108
)
11181109
.build();
11191110

1120-
p.cargo("package --all-features")
1121-
.masquerade_as_nightly_cargo()
1122-
.run();
1111+
p.cargo("package --all-features").run();
11231112
}
11241113

11251114
#[test]
@@ -1149,7 +1138,6 @@ fn package_no_default_features() {
11491138
.build();
11501139

11511140
p.cargo("package --no-default-features")
1152-
.masquerade_as_nightly_cargo()
11531141
.with_stderr_contains("error: This crate requires `required` feature!")
11541142
.with_status(101)
11551143
.run();

tests/testsuite/rename_deps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn lots_of_names() {
122122
.file("foo/src/lib.rs", "pub fn foo4() {}")
123123
.build();
124124

125-
p.cargo("build -v").masquerade_as_nightly_cargo().run();
125+
p.cargo("build -v").run();
126126
}
127127

128128
#[test]

0 commit comments

Comments
 (0)