Skip to content

Commit

Permalink
Auto merge of #6837 - ehuss:remove-alt-reg-test, r=Eh2406
Browse files Browse the repository at this point in the history
testsuite: cleanup for `alternative-registries`

Remove some `alternative-registries` features that were accidentally left
behind.
  • Loading branch information
bors committed Apr 10, 2019
2 parents 0216dcd + c495e0a commit 449411f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions tests/testsuite/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,6 @@ fn generated_manifest() {
.file(
"Cargo.toml",
r#"
cargo-features = ["alternative-registries"]
[project]
name = "foo"
version = "0.0.1"
Expand Down Expand Up @@ -816,8 +814,6 @@ fn generated_manifest() {
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)
cargo-features = ["alternative-registries"]
[package]
name = "foo"
version = "0.0.1"
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/rename_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ fn lots_of_names() {
"Cargo.toml",
&format!(
r#"
cargo-features = ["alternative-registries"]
[package]
name = "test"
version = "0.1.0"
Expand Down
9 changes: 2 additions & 7 deletions tests/testsuite/support/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,19 +445,14 @@ impl Package {
}

fn make_archive(&self) {
let features = if self.deps.iter().any(|dep| dep.registry.is_some()) {
"cargo-features = [\"alternative-registries\"]\n"
} else {
""
};
let mut manifest = format!(
r#"
{}[package]
[package]
name = "{}"
version = "{}"
authors = []
"#,
features, self.name, self.vers
self.name, self.vers
);
for dep in self.deps.iter() {
let target = match dep.target {
Expand Down

0 comments on commit 449411f

Please sign in to comment.