diff --git a/crates/cargo-test-support/src/lib.rs b/crates/cargo-test-support/src/lib.rs
index 8a2e97b2fac..15a77adc7ff 100644
--- a/crates/cargo-test-support/src/lib.rs
+++ b/crates/cargo-test-support/src/lib.rs
@@ -1074,6 +1074,7 @@ pub fn basic_manifest(name: &str, version: &str) -> String {
name = "{}"
version = "{}"
authors = []
+ edition = "2015"
"#,
name, version
)
@@ -1087,6 +1088,7 @@ pub fn basic_bin_manifest(name: &str) -> String {
name = "{}"
version = "0.5.0"
authors = ["wycats@example.com"]
+ edition = "2015"
[[bin]]
@@ -1104,6 +1106,7 @@ pub fn basic_lib_manifest(name: &str) -> String {
name = "{}"
version = "0.5.0"
authors = ["wycats@example.com"]
+ edition = "2015"
[lib]
diff --git a/tests/testsuite/advanced_env.rs b/tests/testsuite/advanced_env.rs
index 8aab528ead7..fb65839a205 100644
--- a/tests/testsuite/advanced_env.rs
+++ b/tests/testsuite/advanced_env.rs
@@ -12,6 +12,7 @@ fn source_config_env() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
somedep = "1.0"
diff --git a/tests/testsuite/alt_registry.rs b/tests/testsuite/alt_registry.rs
index f2797efd527..ec9ec5c67a7 100644
--- a/tests/testsuite/alt_registry.rs
+++ b/tests/testsuite/alt_registry.rs
@@ -17,6 +17,7 @@ fn depend_on_alt_registry() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -66,6 +67,7 @@ fn depend_on_alt_registry_depends_on_same_registry_no_index() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -108,6 +110,7 @@ fn depend_on_alt_registry_depends_on_same_registry() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -150,6 +153,7 @@ fn depend_on_alt_registry_depends_on_crates_io() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -194,6 +198,7 @@ fn registry_and_path_dep_works() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
path = "bar"
@@ -228,6 +233,7 @@ fn registry_incompatible_with_git() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
git = ""
@@ -258,6 +264,7 @@ fn cannot_publish_to_crates_io_with_registry_dependency() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
registry = "alternative"
@@ -301,6 +308,7 @@ fn publish_with_registry_dependency() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -385,6 +393,7 @@ fn alt_registry_and_crates_io_deps() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies]
crates_io_dep = "0.0.1"
@@ -542,6 +551,7 @@ fn publish_with_crates_io_dep() {
name = "foo"
version = "0.0.1"
authors = ["me"]
+ edition = "2015"
license = "MIT"
description = "foo"
@@ -658,6 +668,7 @@ fn patch_alt_reg() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { version = "0.1.0", registry = "alternative" }
@@ -699,6 +710,7 @@ fn bad_registry_name() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -715,14 +727,14 @@ fn bad_registry_name() {
[ERROR] invalid character ` ` in registry name: `bad name`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)
- --> Cargo.toml:7:17
- |
-7 | [dependencies.bar]
- | _________________^
-8 | | version = \"0.0.1\"
-9 | | registry = \"bad name\"
- | |_____________________________________^
- |
+ --> Cargo.toml:8:17
+ |
+ 8 | [dependencies.bar]
+ | _________________^
+ 9 | | version = \"0.0.1\"
+10 | | registry = \"bad name\"
+ | |_____________________________________^
+ |
",
)
.run();
@@ -758,6 +770,7 @@ fn no_api() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -825,6 +838,7 @@ fn alt_reg_metadata() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
altdep = { version = "0.0.1", registry = "alternative" }
@@ -1139,6 +1153,7 @@ fn unknown_registry() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -1315,6 +1330,7 @@ fn registries_index_relative_url() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -1362,6 +1378,7 @@ fn registries_index_relative_path_not_allowed() {
name = "foo"
version = "0.0.1"
authors = []
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -1440,6 +1457,7 @@ fn sparse_lockfile() {
name = "a"
version = "0.5.0"
authors = []
+ edition = "2015"
[dependencies]
foo = { registry = 'alternative', version = '0.1.0'}
@@ -1490,6 +1508,7 @@ fn publish_with_transitive_dep() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1504,6 +1523,7 @@ fn publish_with_transitive_dep() {
name = "b"
version = "0.6.0"
publish = ["Alt-2"]
+ edition = "2015"
[dependencies]
a = { version = "0.5.0", registry = "Alt-1" }
@@ -1605,6 +1625,7 @@ fn empty_dependency_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { version = "0.1.0", registry = "" }
@@ -1626,9 +1647,9 @@ fn empty_dependency_registry() {
[ERROR] registry name cannot be empty
- --> Cargo.toml:7:23
+ --> Cargo.toml:8:23
|
-7 | bar = { version = \"0.1.0\", registry = \"\" }
+8 | bar = { version = \"0.1.0\", registry = \"\" }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
",
diff --git a/tests/testsuite/artifact_dep.rs b/tests/testsuite/artifact_dep.rs
index 1343fdf0070..065554b1d5d 100644
--- a/tests/testsuite/artifact_dep.rs
+++ b/tests/testsuite/artifact_dep.rs
@@ -18,6 +18,7 @@ fn check_with_invalid_artifact_dependency() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -62,6 +63,7 @@ Caused by:
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -94,6 +96,7 @@ Caused by:
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -129,6 +132,7 @@ fn check_with_invalid_target_triple() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -158,6 +162,7 @@ fn build_without_nightly_aborts_with_error() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -191,6 +196,7 @@ fn disallow_artifact_and_no_artifact_dep_to_same_package_within_the_same_dep_cat
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -222,6 +228,7 @@ fn features_are_unified_among_lib_and_bin_dep_of_same_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = "2"
@@ -253,6 +260,7 @@ fn features_are_unified_among_lib_and_bin_dep_of_same_target() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -293,6 +301,7 @@ fn features_are_unified_among_lib_and_bin_dep_of_same_target() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -335,6 +344,7 @@ fn features_are_not_unified_among_lib_and_bin_dep_of_different_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = "2"
@@ -369,6 +379,7 @@ fn features_are_not_unified_among_lib_and_bin_dep_of_different_target() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -400,6 +411,7 @@ fn features_are_not_unified_among_lib_and_bin_dep_of_different_target() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -438,6 +450,7 @@ fn feature_resolution_works_for_cfg_target_specification() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = "2"
@@ -462,6 +475,7 @@ fn feature_resolution_works_for_cfg_target_specification() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'$TARGET'.dependencies]
@@ -491,6 +505,7 @@ fn feature_resolution_works_for_cfg_target_specification() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -512,6 +527,7 @@ fn build_script_with_bin_artifacts() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -553,6 +569,7 @@ fn build_script_with_bin_artifacts() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[lib]
@@ -622,6 +639,7 @@ fn build_script_with_bin_artifact_and_lib_false() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -665,6 +683,7 @@ fn lib_with_bin_artifact_and_lib_false() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -706,6 +725,7 @@ fn build_script_with_selected_dashed_bin_artifact_and_lib_true() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -725,6 +745,7 @@ fn build_script_with_selected_dashed_bin_artifact_and_lib_true() {
[package]
name = "bar-baz"
version = "0.5.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -802,6 +823,7 @@ fn lib_with_selected_dashed_bin_artifact_and_lib_true() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -830,6 +852,7 @@ fn lib_with_selected_dashed_bin_artifact_and_lib_true() {
[package]
name = "bar-baz"
version = "0.5.0"
+ edition = "2015"
authors = []
[lib]
@@ -871,6 +894,7 @@ fn allow_artifact_and_no_artifact_dep_to_same_package_within_different_dep_categ
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -912,6 +936,7 @@ fn normal_build_deps_are_picked_up_in_presence_of_an_artifact_build_dep_to_the_s
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -949,6 +974,7 @@ fn disallow_using_example_binaries_as_artifacts() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -982,6 +1008,7 @@ fn allow_artifact_and_non_artifact_dependency_to_same_crate() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1032,6 +1059,7 @@ fn build_script_deps_adopt_specified_target_unconditionally() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1094,6 +1122,7 @@ fn build_script_deps_adopt_do_not_allow_multiple_targets_under_different_name_an
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1149,6 +1178,7 @@ fn non_build_script_deps_adopt_specified_target_unconditionally() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1200,6 +1230,7 @@ fn no_cross_doctests_works_with_artifacts() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1292,6 +1323,7 @@ fn build_script_deps_adopts_target_platform_if_target_equals_target() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1345,6 +1377,7 @@ fn profile_override_basic() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[build-dependencies]
@@ -1401,6 +1434,7 @@ fn dependencies_of_dependencies_work_in_artifacts() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1423,6 +1457,7 @@ fn dependencies_of_dependencies_work_in_artifacts() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1477,6 +1512,7 @@ fn targets_are_picked_up_from_non_workspace_artifact_deps() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1522,6 +1558,7 @@ fn index_version_filtering() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -1577,6 +1614,7 @@ fn proc_macro_in_artifact_dep() {
[package]
name = "pm"
version = "1.0.0"
+ edition = "2015"
[lib]
proc-macro = true
@@ -1628,6 +1666,7 @@ fn allow_dep_renames_with_multiple_versions() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1674,6 +1713,7 @@ fn allow_artifact_and_non_artifact_dependency_to_same_crate_if_these_are_not_the
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1721,6 +1761,7 @@ fn prevent_no_lib_warning_with_artifact_dependencies() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1755,6 +1796,7 @@ fn show_no_lib_warning_with_artifact_dependencies_that_have_no_lib_but_lib_true(
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1820,6 +1862,7 @@ fn check_missing_crate_type_in_package_fails() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1851,6 +1894,7 @@ fn check_target_equals_target_in_non_build_dependency_errors() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1880,6 +1924,7 @@ fn env_vars_and_build_products_for_various_build_targets() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
resolver = "2"
@@ -1960,6 +2005,7 @@ fn env_vars_and_build_products_for_various_build_targets() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[lib]
@@ -2004,6 +2050,7 @@ fn publish_artifact_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2095,6 +2142,7 @@ You may press ctrl-c [..]
&format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.1.0"
authors = []
@@ -2133,6 +2181,7 @@ fn doc_lib_true() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = "2"
@@ -2192,6 +2241,7 @@ fn rustdoc_works_on_libs_with_artifacts_and_lib_false() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = "2"
@@ -2218,6 +2268,7 @@ fn rustdoc_works_on_libs_with_artifacts_and_lib_false() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[lib]
@@ -2323,6 +2374,7 @@ fn build_script_features_for_shared_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -2346,6 +2398,7 @@ fn build_script_features_for_shared_dependency() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
[dependencies]
common = { path = "../common", features = ["f2"] }
@@ -2363,6 +2416,7 @@ fn build_script_features_for_shared_dependency() {
[package]
name = "common"
version = "0.0.1"
+ edition = "2015"
[features]
f1 = []
@@ -2414,6 +2468,7 @@ fn calc_bin_artifact_fingerprint() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -2609,6 +2664,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = { path = "../a", features = ["feature"] }
@@ -2652,6 +2708,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[dependencies]
c = { path = "../c" }
@@ -2673,6 +2730,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep() {
[package]
name = "c"
version = "0.1.0"
+ edition = "2015"
[features]
feature = []
@@ -2752,6 +2810,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep_lib() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = { path = "../b", optional = true }
@@ -2772,6 +2831,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep_lib() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[features]
feature = []
@@ -2826,6 +2886,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep_and_proc_macro() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = { path = "../b" }
@@ -2880,6 +2941,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep_and_proc_macro() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
d = { path = "../d" }
@@ -2901,6 +2963,7 @@ fn decouple_same_target_transitive_dep_from_artifact_dep_and_proc_macro() {
[package]
name = "d"
version = "0.1.0"
+ edition = "2015"
[features]
feature = []
@@ -2936,6 +2999,7 @@ fn same_target_artifact_dep_sharing() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = {{ path = "a" }}
@@ -2950,6 +3014,7 @@ fn same_target_artifact_dep_sharing() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = { path = "../a" }
@@ -2967,6 +3032,7 @@ fn same_target_artifact_dep_sharing() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("a/src/lib.rs", "")
@@ -2993,6 +3059,7 @@ fn check_transitive_artifact_dependency_with_different_target() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar/" }
@@ -3005,6 +3072,7 @@ fn check_transitive_artifact_dependency_with_different_target() {
[package]
name = "bar"
version = "0.0.0"
+ edition = "2015"
[dependencies]
baz = { path = "baz/", artifact = "bin", target = "custom-target" }
@@ -3017,6 +3085,7 @@ fn check_transitive_artifact_dependency_with_different_target() {
[package]
name = "baz"
version = "0.0.0"
+ edition = "2015"
[dependencies]
"#,
diff --git a/tests/testsuite/bad_config.rs b/tests/testsuite/bad_config.rs
index f7d00d816ae..f2e8a1d9768 100644
--- a/tests/testsuite/bad_config.rs
+++ b/tests/testsuite/bad_config.rs
@@ -153,6 +153,7 @@ fn invalid_global_config() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -218,6 +219,7 @@ fn duplicate_packages_in_cargo_lock() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -272,6 +274,7 @@ fn bad_source_in_cargo_lock() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -344,6 +347,7 @@ fn bad_git_dependency() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -409,6 +413,7 @@ fn bad_crate_type() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[lib]
@@ -435,6 +440,7 @@ fn malformed_override() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[target.x86_64-apple-darwin.freetype]
@@ -452,9 +458,9 @@ fn malformed_override() {
"\
[ERROR] invalid inline table
expected `}`
- --> Cargo.toml:8:27
+ --> Cargo.toml:9:27
|
-8 | native = {
+9 | native = {
| ^
|
",
@@ -471,6 +477,7 @@ fn duplicate_binary_names() {
[package]
name = "qqq"
version = "0.1.0"
+ edition = "2015"
authors = ["A "]
[[bin]]
@@ -508,6 +515,7 @@ fn duplicate_example_names() {
[package]
name = "qqq"
version = "0.1.0"
+ edition = "2015"
authors = ["A "]
[[example]]
@@ -545,6 +553,7 @@ fn duplicate_bench_names() {
[package]
name = "qqq"
version = "0.1.0"
+ edition = "2015"
authors = ["A "]
[[bench]]
@@ -586,6 +595,7 @@ fn duplicate_deps() {
[package]
name = "qqq"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -625,6 +635,7 @@ fn duplicate_deps_diff_sources() {
[package]
name = "qqq"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.i686-unknown-linux-gnu.dependencies]
@@ -660,6 +671,7 @@ fn unused_keys() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[target.foo]
@@ -687,6 +699,7 @@ warning: unused manifest key: target.foo.bar
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
bulid = "foo"
"#,
@@ -712,6 +725,7 @@ warning: unused manifest key: package.bulid
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -765,6 +779,7 @@ fn empty_dependencies() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -823,6 +838,7 @@ fn ambiguous_git_reference() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -856,6 +872,7 @@ fn fragment_in_git_url() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -899,6 +916,7 @@ fn bad_source_config2() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -945,6 +963,7 @@ fn bad_source_config3() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -990,6 +1009,7 @@ fn bad_source_config4() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1039,6 +1059,7 @@ fn bad_source_config5() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1081,6 +1102,7 @@ fn both_git_and_path_specified() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1113,6 +1135,7 @@ fn bad_source_config6() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1152,6 +1175,7 @@ fn ignored_git_revision() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1180,6 +1204,7 @@ Caused by:
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[target.some-target.dependencies]
bar = { path = "bar", branch = "spam" }
@@ -1200,6 +1225,7 @@ fn bad_source_config7() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1234,6 +1260,7 @@ fn bad_source_config8() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1268,6 +1295,7 @@ fn bad_dependency() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1282,9 +1310,9 @@ fn bad_dependency() {
.with_stderr(
"\
[ERROR] invalid type: integer `3`, expected a version string like [..]
- --> Cargo.toml:8:23
+ --> Cargo.toml:9:23
|
-8 | bar = 3
+9 | bar = 3
| ^
|
",
@@ -1301,6 +1329,7 @@ fn bad_debuginfo() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -1315,9 +1344,9 @@ fn bad_debuginfo() {
.with_stderr(
"\
[ERROR] invalid value: string \"a\", expected a boolean, 0, 1, 2, \"line-tables-only\", or \"line-directives-only\"
- --> Cargo.toml:8:25
+ --> Cargo.toml:9:25
|
-8 | debug = 'a'
+9 | debug = 'a'
| ^^^
|
",
@@ -1334,6 +1363,7 @@ fn bad_debuginfo2() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -1348,9 +1378,9 @@ fn bad_debuginfo2() {
.with_stderr(
"\
[ERROR] invalid type: floating point `3.6`, expected a boolean, 0, 1, 2, \"line-tables-only\", or \"line-directives-only\"
- --> Cargo.toml:8:25
+ --> Cargo.toml:9:25
|
-8 | debug = 3.6
+9 | debug = 3.6
| ^^^
|
",
@@ -1367,6 +1397,7 @@ fn bad_opt_level() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = 3
"#,
@@ -1379,9 +1410,9 @@ fn bad_opt_level() {
.with_stderr(
"\
[ERROR] invalid type: integer `3`, expected a boolean or string
- --> Cargo.toml:6:25
+ --> Cargo.toml:7:25
|
-6 | build = 3
+7 | build = 3
| ^
|
",
@@ -1399,6 +1430,7 @@ fn warn_semver_metadata() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[dependencies]
bar = "1.0.0+1234"
@@ -1665,6 +1697,7 @@ fn bad_trim_paths() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[profile.dev]
trim-paths = "split-debuginfo"
@@ -1678,9 +1711,9 @@ fn bad_trim_paths() {
.with_status(101)
.with_stderr("\
[ERROR] expected a boolean, \"none\", \"diagnostics\", \"macro\", \"object\", \"all\", or an array with these options
- --> Cargo.toml:7:30
+ --> Cargo.toml:8:30
|
-7 | trim-paths = \"split-debuginfo\"
+8 | trim-paths = \"split-debuginfo\"
| ^^^^^^^^^^^^^^^^^
|
",
diff --git a/tests/testsuite/binary_name.rs b/tests/testsuite/binary_name.rs
index e0b00eb1bb7..7ef877c139c 100644
--- a/tests/testsuite/binary_name.rs
+++ b/tests/testsuite/binary_name.rs
@@ -12,6 +12,7 @@ fn gated() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[[bin]]
name = "foo"
@@ -47,6 +48,7 @@ fn binary_name1() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[[bin]]
name = "foo"
@@ -129,6 +131,7 @@ fn binary_name2() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[[bin]]
name = "foo"
@@ -215,6 +218,7 @@ fn check_env_vars() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[[bin]]
name = "foo"
@@ -267,6 +271,7 @@ fn check_msg_format_json() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[[bin]]
name = "foo"
diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs
index 848dab1eb8c..c7c751b5052 100644
--- a/tests/testsuite/build.rs
+++ b/tests/testsuite/build.rs
@@ -78,6 +78,7 @@ fn incremental_profile() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -394,6 +395,7 @@ fn cargo_compile_duplicate_build_targets() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -493,6 +495,7 @@ fn cargo_compile_with_invalid_bin_target_name() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = ""
@@ -523,6 +526,7 @@ fn cargo_compile_with_forbidden_bin_target_name() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "build"
@@ -553,6 +557,7 @@ fn cargo_compile_with_bin_and_crate_type() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "the_foo_bin"
@@ -586,6 +591,7 @@ fn cargo_compile_api_exposes_artifact_paths() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "the_foo_bin"
@@ -636,6 +642,7 @@ fn cargo_compile_with_bin_and_proc() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "the_foo_bin"
@@ -668,6 +675,7 @@ fn cargo_compile_with_invalid_lib_target_name() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[lib]
name = ""
@@ -697,6 +705,7 @@ fn cargo_compile_with_invalid_non_numeric_dep_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
crossbeam = "y"
@@ -773,6 +782,7 @@ fn cargo_compile_with_invalid_code_in_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -822,6 +832,7 @@ fn cargo_compile_with_warnings_in_a_dep_package() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -865,6 +876,7 @@ fn cargo_compile_with_nested_deps_inferred() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -882,6 +894,7 @@ fn cargo_compile_with_nested_deps_inferred() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.baz]
@@ -928,6 +941,7 @@ fn cargo_compile_with_nested_deps_correct_bin() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -945,6 +959,7 @@ fn cargo_compile_with_nested_deps_correct_bin() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.baz]
@@ -991,6 +1006,7 @@ fn cargo_compile_with_nested_deps_shorthand() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -1005,6 +1021,7 @@ fn cargo_compile_with_nested_deps_shorthand() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.baz]
@@ -1055,11 +1072,13 @@ fn cargo_compile_with_nested_deps_longhand() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
path = "bar"
version = "0.5.0"
+ edition = "2015"
[[bin]]
@@ -1074,11 +1093,13 @@ fn cargo_compile_with_nested_deps_longhand() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.baz]
path = "../baz"
version = "0.5.0"
+ edition = "2015"
[lib]
@@ -1127,6 +1148,7 @@ fn cargo_compile_with_dep_name_mismatch() {
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = ["wycats@example.com"]
[[bin]]
@@ -1165,6 +1187,7 @@ fn cargo_compile_with_invalid_dep_rename() {
[package]
name = "buggin"
version = "0.1.0"
+ edition = "2015"
[dependencies]
"haha this isn't a valid name 🐛" = { package = "libc", version = "0.1" }
@@ -1178,9 +1201,9 @@ fn cargo_compile_with_invalid_dep_rename() {
.with_stderr(
"\
[ERROR] invalid character ` ` in package name: `haha this isn't a valid name 🐛`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)
- --> Cargo.toml:7:17
+ --> Cargo.toml:8:17
|
-7 | \"haha this isn't a valid name 🐛\" = { package = \"libc\", version = \"0.1\" }
+8 | \"haha this isn't a valid name 🐛\" = { package = \"libc\", version = \"0.1\" }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
",
@@ -1267,6 +1290,7 @@ fn incompatible_dependencies() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -1313,6 +1337,7 @@ fn incompatible_dependencies_with_multi_semver() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -1355,6 +1380,7 @@ fn compile_path_dep_then_change_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1398,6 +1424,7 @@ fn cargo_default_env_metadata_env_var() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1411,6 +1438,7 @@ fn cargo_default_env_metadata_env_var() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1485,6 +1513,7 @@ fn crate_env_vars() {
[package]
name = "foo"
version = "0.5.1-alpha.1"
+ edition = "2015"
description = "This is foo"
homepage = "https://example.com"
repository = "https://example.com/repo.git"
@@ -1712,6 +1741,7 @@ fn cargo_rustc_current_dir_foreign_workspace_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1732,6 +1762,7 @@ fn cargo_rustc_current_dir_foreign_workspace_dep() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1759,6 +1790,7 @@ fn cargo_rustc_current_dir_foreign_workspace_dep() {
[package]
name = "baz_member"
version = "0.1.0"
+ edition = "2015"
authors = []
"#,
)
@@ -1820,6 +1852,7 @@ fn cargo_rustc_current_dir_non_local_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -1864,6 +1897,7 @@ fn crate_authors_env_vars() {
[package]
name = "foo"
version = "0.5.1-alpha.1"
+ edition = "2015"
authors = ["wycats@example.com", "neikos@example.com"]
"#,
)
@@ -1913,6 +1947,7 @@ fn vv_prints_rustc_env_vars() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = ["escape='\"@example.com"]
"#,
)
@@ -1994,6 +2029,7 @@ fn many_crate_types_old_style_lib_location() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -2027,6 +2063,7 @@ fn many_crate_types_correct() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -2054,6 +2091,7 @@ fn set_both_dylib_and_cdylib_crate_types() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -2101,6 +2139,7 @@ fn dev_dependencies_conflicting_warning() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("a/src/lib.rs", "")
@@ -2137,6 +2176,7 @@ fn build_dependencies_conflicting_warning() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("a/src/lib.rs", "")
@@ -2158,6 +2198,7 @@ fn lib_crate_types_conflicting_warning() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -2185,6 +2226,7 @@ fn examples_crate_types_conflicting_warning() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[[example]]
@@ -2234,6 +2276,7 @@ fn self_dependency() {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.test]
@@ -2314,6 +2357,7 @@ fn lto_build() {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.release]
@@ -2403,6 +2447,7 @@ fn verbose_release_build_deps() {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.foo]
@@ -2417,6 +2462,7 @@ fn verbose_release_build_deps() {
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[lib]
@@ -2464,6 +2510,7 @@ fn explicit_examples() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
authors = []
[lib]
@@ -2521,6 +2568,7 @@ fn non_existing_test() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -2555,6 +2603,7 @@ fn non_existing_example() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -2589,6 +2638,7 @@ fn non_existing_benchmark() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -2644,6 +2694,7 @@ fn commonly_wrong_path_of_test() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -2680,6 +2731,7 @@ fn commonly_wrong_path_of_example() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -2716,6 +2768,7 @@ fn commonly_wrong_path_of_benchmark() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -2820,6 +2873,7 @@ fn legacy_binary_paths_warnings() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -2845,6 +2899,7 @@ please set bin.path in Cargo.toml",
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -2870,6 +2925,7 @@ please set bin.path in Cargo.toml",
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -2989,6 +3045,7 @@ fn deletion_causes_failure() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -3050,6 +3107,7 @@ fn simple_staticlib() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[lib]
name = "foo"
@@ -3073,6 +3131,7 @@ fn staticlib_rlib_and_bin() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[lib]
name = "foo"
@@ -3098,6 +3157,7 @@ fn opt_out_of_bin() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -3116,6 +3176,7 @@ fn single_lib() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[lib]
name = "foo"
@@ -3136,6 +3197,7 @@ fn freshness_ignores_excluded() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
exclude = ["src/b*.rs"]
@@ -3174,6 +3236,7 @@ fn rebuild_preserves_out_dir() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = 'build.rs'
"#,
@@ -3229,6 +3292,7 @@ fn dep_no_libs() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -3251,6 +3315,7 @@ fn recompile_space_in_name() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[lib]
@@ -3349,6 +3414,7 @@ fn cargo_platform_specific_dependency() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
@@ -3396,6 +3462,7 @@ fn cargo_platform_specific_dependency_build_dependencies_conflicting_warning() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
@@ -3437,6 +3504,7 @@ fn cargo_platform_specific_dependency_dev_dependencies_conflicting_warning() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[target.{host}.dev-dependencies]
@@ -3477,6 +3545,7 @@ fn bad_platform_specific_dependency() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[target.wrong-target.dependencies.bar]
@@ -3507,6 +3576,7 @@ fn cargo_platform_specific_dependency_wrong_platform() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[target.non-existing-triplet.dependencies.bar]
@@ -3539,6 +3609,7 @@ fn example_as_lib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -3563,6 +3634,7 @@ fn example_as_rlib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -3587,6 +3659,7 @@ fn example_as_dylib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -3611,6 +3684,7 @@ fn example_as_proc_macro() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -3680,6 +3754,7 @@ fn transitive_dependencies_not_available() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.aaaaa]
@@ -3696,6 +3771,7 @@ fn transitive_dependencies_not_available() {
[package]
name = "aaaaa"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bbbbb]
@@ -3722,6 +3798,7 @@ fn cyclic_deps_rejected() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.a]
@@ -3735,6 +3812,7 @@ fn cyclic_deps_rejected() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.foo]
@@ -3763,6 +3841,7 @@ fn predictable_filenames() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -3800,6 +3879,7 @@ fn dashes_in_crate_name_bad() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -4005,6 +4085,7 @@ fn build_multiple_packages() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -4026,6 +4107,7 @@ fn build_multiple_packages() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -4066,6 +4148,7 @@ fn invalid_spec() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -4101,6 +4184,7 @@ fn manifest_with_bom_is_ok() {
[package]
name = \"foo\"
version = \"0.0.1\"
+ edition = \"2015\"
authors = []
",
)
@@ -4118,6 +4202,7 @@ fn panic_abort_compiles_with_panic_abort() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.dev]
@@ -4141,6 +4226,7 @@ fn compiler_json_error_format() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -4389,6 +4475,7 @@ fn no_warn_about_package_metadata() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[package.metadata]
@@ -4434,6 +4521,7 @@ fn no_warn_about_workspace_metadata() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("foo/src/lib.rs", "")
@@ -4494,6 +4582,7 @@ fn build_all_workspace() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -4526,6 +4615,7 @@ fn build_all_exclude() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar", "baz"]
@@ -4559,6 +4649,7 @@ fn cargo_build_with_unsupported_short_exclude_flag() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar", "baz"]
@@ -4596,6 +4687,7 @@ fn build_all_exclude_not_found() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar"]
@@ -4628,6 +4720,7 @@ fn build_all_exclude_glob() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar", "baz"]
@@ -4661,6 +4754,7 @@ fn build_all_exclude_glob_not_found() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar"]
@@ -4703,6 +4797,7 @@ fn build_all_workspace_implicit_examples() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -4950,6 +5045,7 @@ fn build_all_member_dependency_same_name() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = "0.1.0"
@@ -4982,6 +5078,7 @@ fn run_proper_binary() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "main"
[[bin]]
@@ -5020,6 +5117,7 @@ fn run_proper_alias_binary_from_src() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "foo"
[[bin]]
@@ -5045,6 +5143,7 @@ fn run_proper_alias_binary_main_rs() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "foo"
[[bin]]
@@ -5102,6 +5201,7 @@ fn rustc_wrapper_relative() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -5162,6 +5262,7 @@ fn cdylib_not_lifted() {
name = "foo"
authors = []
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["cdylib"]
@@ -5200,6 +5301,7 @@ fn cdylib_final_outputs() {
name = "foo-bar"
authors = []
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["cdylib"]
@@ -5240,6 +5342,7 @@ fn no_dep_info_collision_when_cdylib_and_bin_coexist() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
[lib]
crate-type = ["cdylib"]
@@ -5287,6 +5390,7 @@ fn deterministic_cfg_flags() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -5337,6 +5441,7 @@ fn explicit_bins_without_paths() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -5412,6 +5517,7 @@ fn inferred_bin_path() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -5482,6 +5588,7 @@ fn target_edition() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[lib]
edition = "2018"
@@ -5566,6 +5673,7 @@ fn building_a_dependent_crate_without_bin_should_fail() {
[package]
name = "testless"
version = "0.1.0"
+ edition = "2015"
[[bin]]
name = "a_bin"
@@ -5581,6 +5689,7 @@ fn building_a_dependent_crate_without_bin_should_fail() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
testless = "0.1.0"
@@ -5814,6 +5923,7 @@ fn no_linkable_target() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
the_lib = { path = "the_lib" }
@@ -5826,6 +5936,7 @@ fn no_linkable_target() {
[package]
name = "the_lib"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "the_lib"
crate-type = ["staticlib"]
@@ -5851,6 +5962,7 @@ fn avoid_dev_deps() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dev-dependencies]
@@ -6039,6 +6151,7 @@ fn signal_display() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pm = { path = "pm" }
"#,
@@ -6059,6 +6172,7 @@ fn signal_display() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
"#,
@@ -6101,6 +6215,7 @@ fn tricky_pipelining() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
"#,
@@ -6123,6 +6238,7 @@ fn pipelining_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
"#,
@@ -6155,6 +6271,7 @@ fn pipelining_big_graph() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a1 = { path = "a1" }
b1 = { path = "b1" }
@@ -6172,6 +6289,7 @@ fn pipelining_big_graph() {
[package]
name = "{x}{n}"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a{np1} = {{ path = "../a{np1}" }}
b{np1} = {{ path = "../b{np1}" }}
@@ -6221,6 +6339,7 @@ fn forward_rustc_output() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
"#,
@@ -6304,6 +6423,7 @@ fn build_with_relative_cargo_home_path() {
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies]
@@ -6517,6 +6637,7 @@ fn close_output_during_drain() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = "1.0"
@@ -6571,6 +6692,7 @@ fn reduced_reproduction_8249() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = { version = "*", features = ["a-src"] }
@@ -6652,6 +6774,7 @@ fn build_script_o0_default_even_with_release() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.release]
opt-level = 1
@@ -6694,6 +6817,7 @@ fn primary_package_env_var() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ path = "bar" }}
@@ -6741,6 +6865,7 @@ fn renamed_uplifted_artifact_remains_unmodified_after_rebuild() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
diff --git a/tests/testsuite/build_script.rs b/tests/testsuite/build_script.rs
index 87b8ab1a154..a60c59b0b25 100644
--- a/tests/testsuite/build_script.rs
+++ b/tests/testsuite/build_script.rs
@@ -25,6 +25,7 @@ fn custom_build_script_failed() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
"#,
@@ -61,6 +62,7 @@ fn custom_build_script_failed_backtraces_message() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
"#,
@@ -115,6 +117,7 @@ fn custom_build_script_failed_backtraces_message_with_debuginfo() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
"#,
@@ -149,6 +152,7 @@ fn custom_build_env_vars() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[features]
@@ -166,6 +170,7 @@ fn custom_build_env_vars() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
@@ -383,6 +388,7 @@ fn custom_build_env_var_rustc_workspace_wrapper() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
links = "a"
"#,
)
@@ -405,6 +411,7 @@ fn custom_build_env_var_rustc_workspace_wrapper() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -817,6 +824,7 @@ fn custom_build_script_wrong_rustc_flags() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
"#,
@@ -847,6 +855,7 @@ fn custom_build_script_rustc_flags() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.foo]
@@ -861,6 +870,7 @@ fn custom_build_script_rustc_flags() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
"#,
@@ -906,6 +916,7 @@ fn custom_build_script_rustc_flags_no_space() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.foo]
@@ -920,6 +931,7 @@ fn custom_build_script_rustc_flags_no_space() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
"#,
@@ -964,6 +976,7 @@ fn links_no_build_cmd() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
"#,
@@ -995,6 +1008,7 @@ fn links_duplicates() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -1011,6 +1025,7 @@ fn links_duplicates() {
[package]
name = "a-sys"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -1044,6 +1059,7 @@ fn links_duplicates_old_registry() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
links = "a"
"#,
)
@@ -1058,6 +1074,7 @@ fn links_duplicates_old_registry() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
links = "a"
[dependencies]
@@ -1099,6 +1116,7 @@ fn links_duplicates_deep_dependency() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -1115,6 +1133,7 @@ fn links_duplicates_deep_dependency() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1130,6 +1149,7 @@ fn links_duplicates_deep_dependency() {
[package]
name = "a-sys"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -1165,6 +1185,7 @@ fn overrides_and_links() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1203,6 +1224,7 @@ fn overrides_and_links() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -1238,6 +1260,7 @@ fn unused_overrides() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1270,6 +1293,7 @@ fn links_passes_env_vars() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1294,6 +1318,7 @@ fn links_passes_env_vars() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -1327,6 +1352,7 @@ fn only_rerun_build_script() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1364,6 +1390,7 @@ fn rebuild_continues_to_pass_env_vars() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -1392,6 +1419,7 @@ fn rebuild_continues_to_pass_env_vars() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1432,6 +1460,7 @@ fn testing_and_such() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1499,6 +1528,7 @@ fn propagation_of_l_flags() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
path = "a"
@@ -1511,6 +1541,7 @@ fn propagation_of_l_flags() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "bar"
build = "build.rs"
@@ -1530,6 +1561,7 @@ fn propagation_of_l_flags() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -1570,6 +1602,7 @@ fn propagation_of_l_flags_new() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
path = "a"
@@ -1582,6 +1615,7 @@ fn propagation_of_l_flags_new() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "bar"
build = "build.rs"
@@ -1605,6 +1639,7 @@ fn propagation_of_l_flags_new() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -1644,6 +1679,7 @@ fn build_deps_simple() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
[build-dependencies.a]
@@ -1688,6 +1724,7 @@ fn build_deps_not_for_normal() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
[build-dependencies.aaaaa]
@@ -1734,6 +1771,7 @@ fn build_cmd_with_a_build_cmd() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1756,6 +1794,7 @@ fn build_cmd_with_a_build_cmd() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1812,6 +1851,7 @@ fn out_dir_is_preserved() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1894,6 +1934,7 @@ fn output_separate_lines() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1932,6 +1973,7 @@ fn output_separate_lines_new() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1973,6 +2015,7 @@ fn code_generation() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2030,6 +2073,7 @@ fn release_with_build_script() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2055,6 +2099,7 @@ fn build_script_only() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2083,6 +2128,7 @@ fn shared_dep_with_a_build_script() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -2101,6 +2147,7 @@ fn shared_dep_with_a_build_script() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2113,6 +2160,7 @@ fn shared_dep_with_a_build_script() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
@@ -2133,6 +2181,7 @@ fn transitive_dep_host() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -2148,6 +2197,7 @@ fn transitive_dep_host() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -2161,6 +2211,7 @@ fn transitive_dep_host() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[lib]
@@ -2185,6 +2236,7 @@ fn test_a_lib_with_a_build_command() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2228,6 +2280,7 @@ fn test_dev_dep_build_script() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dev-dependencies.a]
@@ -2241,6 +2294,7 @@ fn test_dev_dep_build_script() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2262,6 +2316,7 @@ fn build_script_with_dynamic_native_dependency() {
[package]
name = "builder"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2279,6 +2334,7 @@ fn build_script_with_dynamic_native_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -2294,6 +2350,7 @@ fn build_script_with_dynamic_native_dependency() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2356,6 +2413,7 @@ fn profile_and_opt_level_set_correctly() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2386,6 +2444,7 @@ fn profile_debug_0() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[profile.dev]
debug = 0
@@ -2417,6 +2476,7 @@ fn build_script_with_lto() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -2439,6 +2499,7 @@ fn test_duplicate_deps() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -2479,6 +2540,7 @@ fn cfg_feedback() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2503,6 +2565,7 @@ fn cfg_override() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -2534,6 +2597,7 @@ fn cfg_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2596,6 +2660,7 @@ fn cfg_doc() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -2614,6 +2679,7 @@ fn cfg_doc() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2639,6 +2705,7 @@ fn cfg_override_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
links = "a"
@@ -2707,6 +2774,7 @@ fn cfg_override_doc() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
links = "a"
@@ -2735,6 +2803,7 @@ fn cfg_override_doc() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
links = "b"
@@ -2758,6 +2827,7 @@ fn env_build() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2789,6 +2859,7 @@ fn env_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2842,6 +2913,7 @@ fn env_doc() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2870,6 +2942,7 @@ fn flags_go_into_tests() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2884,6 +2957,7 @@ fn flags_go_into_tests() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
a = { path = "../a" }
@@ -2896,6 +2970,7 @@ fn flags_go_into_tests() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2951,6 +3026,7 @@ fn diamond_passes_args_only_once() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2966,6 +3042,7 @@ fn diamond_passes_args_only_once() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
b = { path = "../b" }
@@ -2979,6 +3056,7 @@ fn diamond_passes_args_only_once() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
c = { path = "../c" }
@@ -2991,6 +3069,7 @@ fn diamond_passes_args_only_once() {
[package]
name = "c"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3035,6 +3114,7 @@ fn adding_an_override_invalidates() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -3096,6 +3176,7 @@ fn changing_an_override_invalidates() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -3159,6 +3240,7 @@ fn fresh_builds_possible_with_link_libs() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "nativefoo"
build = "build.rs"
@@ -3211,6 +3293,7 @@ fn fresh_builds_possible_with_multiple_metadata_overrides() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -3266,6 +3349,7 @@ fn generate_good_d_files() {
[package]
name = "awoo"
version = "0.5.0"
+ edition = "2015"
build = "build.rs"
"#,
)
@@ -3285,6 +3369,7 @@ fn generate_good_d_files() {
[package]
name = "meow"
version = "0.5.0"
+ edition = "2015"
[dependencies]
awoo = { path = "awoo" }
"#,
@@ -3345,6 +3430,7 @@ fn generate_good_d_files_for_external_tools() {
[package]
name = "awoo"
version = "0.5.0"
+ edition = "2015"
build = "build.rs"
"#,
)
@@ -3364,6 +3450,7 @@ fn generate_good_d_files_for_external_tools() {
[package]
name = "meow"
version = "0.5.0"
+ edition = "2015"
[dependencies]
awoo = { path = "awoo" }
"#,
@@ -3406,6 +3493,7 @@ fn rebuild_only_on_explicit_paths() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3521,6 +3609,7 @@ fn doctest_receives_build_link_args() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
path = "a"
@@ -3533,6 +3622,7 @@ fn doctest_receives_build_link_args() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "bar"
build = "build.rs"
@@ -3565,6 +3655,7 @@ fn please_respect_the_dag() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -3587,6 +3678,7 @@ fn please_respect_the_dag() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "bar"
build = "build.rs"
@@ -3617,6 +3709,7 @@ fn non_utf8_output() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3654,6 +3747,7 @@ fn custom_target_dir() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -3674,6 +3768,7 @@ fn custom_target_dir() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3694,6 +3789,7 @@ fn panic_abort_with_build_scripts() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[profile.release]
@@ -3714,6 +3810,7 @@ fn panic_abort_with_build_scripts() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -3732,6 +3829,7 @@ fn panic_abort_with_build_scripts() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
"#,
)
@@ -3756,6 +3854,7 @@ fn warnings_emitted() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3796,6 +3895,7 @@ fn warnings_emitted_when_build_script_panics() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3838,6 +3938,7 @@ fn warnings_hidden_for_upstream() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3852,6 +3953,7 @@ fn warnings_hidden_for_upstream() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -3897,6 +3999,7 @@ fn warnings_printed_on_vv() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3911,6 +4014,7 @@ fn warnings_printed_on_vv() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -3949,6 +4053,7 @@ fn output_shows_on_vv() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -3993,6 +4098,7 @@ fn links_with_dots() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
links = "a.b"
@@ -4033,6 +4139,7 @@ fn rustc_and_rustdoc_set_correctly() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -4062,6 +4169,7 @@ fn cfg_env_vars_available() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -4095,6 +4203,7 @@ fn switch_features_rerun() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -4176,6 +4285,7 @@ fn if_build_set_to_false_dont_treat_build_rs_as_build_script() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = false
"#,
@@ -4215,6 +4325,7 @@ fn deterministic_rustc_dependency_flags() {
[package]
name = "dep1"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -4236,6 +4347,7 @@ fn deterministic_rustc_dependency_flags() {
[package]
name = "dep2"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -4257,6 +4369,7 @@ fn deterministic_rustc_dependency_flags() {
[package]
name = "dep3"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -4278,6 +4391,7 @@ fn deterministic_rustc_dependency_flags() {
[package]
name = "dep4"
version = "0.1.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -4300,6 +4414,7 @@ fn deterministic_rustc_dependency_flags() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -4332,6 +4447,7 @@ fn links_duplicates_with_cycle() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -4351,6 +4467,7 @@ fn links_duplicates_with_cycle() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "a"
build = "build.rs"
@@ -4364,6 +4481,7 @@ fn links_duplicates_with_cycle() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -4418,6 +4536,7 @@ fn _rename_with_link_search_path(cross: bool) {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[lib]
@@ -4559,6 +4678,7 @@ fn optional_build_script_dep() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -4611,6 +4731,7 @@ fn optional_build_dep_and_required_normal_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -4673,6 +4794,7 @@ fn using_rerun_if_changed_does_not_rebuild() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
"#,
)
@@ -4708,6 +4830,7 @@ fn links_interrupted_can_restart() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
links = "foo"
build = "build.rs"
@@ -4732,6 +4855,7 @@ fn links_interrupted_can_restart() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -4783,6 +4907,7 @@ fn dev_dep_with_links() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
links = "x"
@@ -4798,6 +4923,7 @@ fn dev_dep_with_links() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
links = "y"
@@ -4957,6 +5083,7 @@ fn rerun_if_published_directory() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
mylib-sys = "1.0.0"
@@ -5020,6 +5147,7 @@ fn test_with_dep_metadata() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = 'bar' }
@@ -5040,6 +5168,7 @@ fn test_with_dep_metadata() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
links = 'bar'
"#,
)
@@ -5080,6 +5209,7 @@ fn duplicate_script_with_extra_env() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pm = { path = "../pm" }
@@ -5122,6 +5252,7 @@ fn duplicate_script_with_extra_env() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
@@ -5188,6 +5319,7 @@ fn custom_build_closes_stdin() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
build = "build.rs"
"#,
)
@@ -5212,6 +5344,7 @@ fn test_old_syntax() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -5328,6 +5461,7 @@ fn test_new_syntax_with_old_msrv() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
rust-version = "1.60.0"
@@ -5367,6 +5501,7 @@ fn test_old_syntax_with_old_msrv() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
rust-version = "1.60.0"
diff --git a/tests/testsuite/build_script_extra_link_arg.rs b/tests/testsuite/build_script_extra_link_arg.rs
index bcd4967cb7b..3ef1f98b009 100644
--- a/tests/testsuite/build_script_extra_link_arg.rs
+++ b/tests/testsuite/build_script_extra_link_arg.rs
@@ -40,6 +40,7 @@ fn build_script_extra_link_arg_bin_single() {
name = "foobar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[[bin]]
@@ -177,6 +178,7 @@ fn cdylib_link_arg_transitive() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["cdylib"]
@@ -243,6 +245,7 @@ fn link_arg_transitive_not_allowed() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["cdylib"]
diff --git a/tests/testsuite/cache_messages.rs b/tests/testsuite/cache_messages.rs
index 0cd39c9c606..81933f93f72 100644
--- a/tests/testsuite/cache_messages.rs
+++ b/tests/testsuite/cache_messages.rs
@@ -255,6 +255,7 @@ fn very_verbose() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -288,6 +289,7 @@ fn doesnt_create_extra_files() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = "1.0"
diff --git a/tests/testsuite/cargo_add/add-basic.in/Cargo.toml b/tests/testsuite/cargo_add/add-basic.in/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/add-basic.in/Cargo.toml
+++ b/tests/testsuite/cargo_add/add-basic.in/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/add_basic/out/Cargo.toml b/tests/testsuite/cargo_add/add_basic/out/Cargo.toml
index 5964c87be74..fc6eaf19ac9 100644
--- a/tests/testsuite/cargo_add/add_basic/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/add_basic/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/add_multiple/out/Cargo.toml b/tests/testsuite/cargo_add/add_multiple/out/Cargo.toml
index ba8d7eabe5b..07c8e345068 100644
--- a/tests/testsuite/cargo_add/add_multiple/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/add_multiple/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/add_normalized_name_external/out/Cargo.toml b/tests/testsuite/cargo_add/add_normalized_name_external/out/Cargo.toml
index 3d0dec34345..2d70918e7f2 100644
--- a/tests/testsuite/cargo_add/add_normalized_name_external/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/add_normalized_name_external/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
inflector = "0.11.4"
diff --git a/tests/testsuite/cargo_add/add_toolchain/out/Cargo.toml b/tests/testsuite/cargo_add/add_toolchain/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/add_toolchain/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/add_toolchain/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/build/out/Cargo.toml b/tests/testsuite/cargo_add/build/out/Cargo.toml
index cceb448ed56..a33a2f963a9 100644
--- a/tests/testsuite/cargo_add/build/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/build/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[build-dependencies]
my-build-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/build_prefer_existing_version/in/Cargo.toml b/tests/testsuite/cargo_add/build_prefer_existing_version/in/Cargo.toml
index 6a6ac823fd6..ba1ccc91a81 100644
--- a/tests/testsuite/cargo_add/build_prefer_existing_version/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/build_prefer_existing_version/in/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["one", "two"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/build_prefer_existing_version/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/build_prefer_existing_version/in/dependency/Cargo.toml
index 58b909ceff0..70c8e9ae0b5 100644
--- a/tests/testsuite/cargo_add/build_prefer_existing_version/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/build_prefer_existing_version/in/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
[features]
one = []
diff --git a/tests/testsuite/cargo_add/build_prefer_existing_version/out/Cargo.toml b/tests/testsuite/cargo_add/build_prefer_existing_version/out/Cargo.toml
index 123af6d22a8..10eeb3ae649 100644
--- a/tests/testsuite/cargo_add/build_prefer_existing_version/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/build_prefer_existing_version/out/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["one", "two"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/build_prefer_existing_version/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/build_prefer_existing_version/out/dependency/Cargo.toml
index 58b909ceff0..70c8e9ae0b5 100644
--- a/tests/testsuite/cargo_add/build_prefer_existing_version/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/build_prefer_existing_version/out/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
[features]
one = []
diff --git a/tests/testsuite/cargo_add/change_rename_target/in/Cargo.toml b/tests/testsuite/cargo_add/change_rename_target/in/Cargo.toml
index e81a76b4be4..151ccf4ddda 100644
--- a/tests/testsuite/cargo_add/change_rename_target/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/change_rename_target/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
some-package = { package = "my-package1", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/change_rename_target/out/Cargo.toml b/tests/testsuite/cargo_add/change_rename_target/out/Cargo.toml
index bc29fac8ebd..baf4965e8e3 100644
--- a/tests/testsuite/cargo_add/change_rename_target/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/change_rename_target/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
some-package = { package = "my-package2", version = "99999.0.0", optional = true }
diff --git a/tests/testsuite/cargo_add/cyclic_features/out/Cargo.toml b/tests/testsuite/cargo_add/cyclic_features/out/Cargo.toml
index 27a5c31f867..b0e69c4185e 100644
--- a/tests/testsuite/cargo_add/cyclic_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/cyclic_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
test_cyclic_features = "0.1.1"
diff --git a/tests/testsuite/cargo_add/default_features/out/Cargo.toml b/tests/testsuite/cargo_add/default_features/out/Cargo.toml
index c5e01789281..5ea9426f0f3 100644
--- a/tests/testsuite/cargo_add/default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/deprecated_default_features/in/Cargo.toml b/tests/testsuite/cargo_add/deprecated_default_features/in/Cargo.toml
index c0fc374eae3..c1a725adaf2 100644
--- a/tests/testsuite/cargo_add/deprecated_default_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/deprecated_default_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "99999.0.0", default_features = false }
diff --git a/tests/testsuite/cargo_add/deprecated_default_features/out/Cargo.toml b/tests/testsuite/cargo_add/deprecated_default_features/out/Cargo.toml
index c0fc374eae3..c1a725adaf2 100644
--- a/tests/testsuite/cargo_add/deprecated_default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/deprecated_default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "99999.0.0", default_features = false }
diff --git a/tests/testsuite/cargo_add/deprecated_section/in/Cargo.toml b/tests/testsuite/cargo_add/deprecated_section/in/Cargo.toml
index a83d2c621f6..1e6aeb9fb90 100644
--- a/tests/testsuite/cargo_add/deprecated_section/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/deprecated_section/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev_dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/deprecated_section/out/Cargo.toml b/tests/testsuite/cargo_add/deprecated_section/out/Cargo.toml
index a83d2c621f6..1e6aeb9fb90 100644
--- a/tests/testsuite/cargo_add/deprecated_section/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/deprecated_section/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev_dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit/in/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit/in/primary/Cargo.toml
index b867edbbed1..fb520246281 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
-version = "0.0.0"
\ No newline at end of file
+version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit/out/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit/out/primary/Cargo.toml
index a5740941b2c..7001b02934c 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo.workspace = true
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/dependency/Cargo.toml
index f34d7a68506..fe546f43c8c 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
@@ -11,4 +12,4 @@ test-base = []
test = ["test-base", "default-test-base"]
merge-base = []
merge = ["merge-base", "default-merge-base"]
-unrelated = []
\ No newline at end of file
+unrelated = []
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/primary/Cargo.toml
index b867edbbed1..fb520246281 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_features/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
-version = "0.0.0"
\ No newline at end of file
+version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/dependency/Cargo.toml
index f34d7a68506..fe546f43c8c 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
@@ -11,4 +12,4 @@ test-base = []
test = ["test-base", "default-test-base"]
merge-base = []
merge = ["merge-base", "default-merge-base"]
-unrelated = []
\ No newline at end of file
+unrelated = []
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/primary/Cargo.toml
index fb4a1261919..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_features/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/primary/Cargo.toml
index b867edbbed1..fb520246281 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
-version = "0.0.0"
\ No newline at end of file
+version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/primary/Cargo.toml
index 38ff36eb38b..18b7d80251e 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_optional/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, optional = true }
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/primary/Cargo.toml
index b5923a106b9..ec196059a86 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_public/in/primary/Cargo.toml
@@ -1,4 +1,5 @@
cargo-features = ["public-dependency"]
[package]
name = "bar"
-version = "0.0.0"
\ No newline at end of file
+version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/primary/Cargo.toml b/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/primary/Cargo.toml
index 665c6ae5e02..c9ffb668baa 100644
--- a/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/detect_workspace_inherit_public/out/primary/Cargo.toml
@@ -2,6 +2,7 @@ cargo-features = ["public-dependency"]
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, public = true }
diff --git a/tests/testsuite/cargo_add/dev/out/Cargo.toml b/tests/testsuite/cargo_add/dev/out/Cargo.toml
index 28d9e81ced5..137dbe19bd9 100644
--- a/tests/testsuite/cargo_add/dev/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/dev/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev-dependencies]
my-dev-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/dev_build_conflict/out/Cargo.toml b/tests/testsuite/cargo_add/dev_build_conflict/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/dev_build_conflict/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/dev_build_conflict/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/dev_prefer_existing_version/in/Cargo.toml b/tests/testsuite/cargo_add/dev_prefer_existing_version/in/Cargo.toml
index 6a6ac823fd6..ba1ccc91a81 100644
--- a/tests/testsuite/cargo_add/dev_prefer_existing_version/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/dev_prefer_existing_version/in/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["one", "two"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/dev_prefer_existing_version/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/dev_prefer_existing_version/in/dependency/Cargo.toml
index 58b909ceff0..70c8e9ae0b5 100644
--- a/tests/testsuite/cargo_add/dev_prefer_existing_version/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/dev_prefer_existing_version/in/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
[features]
one = []
diff --git a/tests/testsuite/cargo_add/dev_prefer_existing_version/out/Cargo.toml b/tests/testsuite/cargo_add/dev_prefer_existing_version/out/Cargo.toml
index 247f345cf64..c139c5f9feb 100644
--- a/tests/testsuite/cargo_add/dev_prefer_existing_version/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/dev_prefer_existing_version/out/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["one", "two"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/dev_prefer_existing_version/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/dev_prefer_existing_version/out/dependency/Cargo.toml
index 58b909ceff0..70c8e9ae0b5 100644
--- a/tests/testsuite/cargo_add/dev_prefer_existing_version/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/dev_prefer_existing_version/out/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
[features]
one = []
diff --git a/tests/testsuite/cargo_add/dry_run/out/Cargo.toml b/tests/testsuite/cargo_add/dry_run/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/dry_run/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/dry_run/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/empty_dep_name/out/Cargo.toml b/tests/testsuite/cargo_add/empty_dep_name/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/empty_dep_name/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/empty_dep_name/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/empty_dep_table/in/Cargo.toml b/tests/testsuite/cargo_add/empty_dep_table/in/Cargo.toml
index cac16bb9472..f6ecdafb72e 100644
--- a/tests/testsuite/cargo_add/empty_dep_table/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/empty_dep_table/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { }
diff --git a/tests/testsuite/cargo_add/empty_dep_table/out/Cargo.toml b/tests/testsuite/cargo_add/empty_dep_table/out/Cargo.toml
index cac16bb9472..f6ecdafb72e 100644
--- a/tests/testsuite/cargo_add/empty_dep_table/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/empty_dep_table/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { }
diff --git a/tests/testsuite/cargo_add/features/out/Cargo.toml b/tests/testsuite/cargo_add/features/out/Cargo.toml
index 11419b20363..3bef0b6678c 100644
--- a/tests/testsuite/cargo_add/features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes"] }
diff --git a/tests/testsuite/cargo_add/features_activated_over_limit/in/Cargo.toml b/tests/testsuite/cargo_add/features_activated_over_limit/in/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/features_activated_over_limit/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_activated_over_limit/in/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/features_activated_over_limit/out/Cargo.toml b/tests/testsuite/cargo_add/features_activated_over_limit/out/Cargo.toml
index 6c8c7e5a3e4..f8e318b8ea3 100644
--- a/tests/testsuite/cargo_add/features_activated_over_limit/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_activated_over_limit/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes000", "eyes001", "eyes002", "eyes003", "eyes004", "eyes005", "eyes006", "eyes007", "eyes008", "eyes009", "eyes010", "eyes011", "eyes012", "eyes013", "eyes014", "eyes015", "eyes016", "eyes017", "eyes018", "eyes019", "eyes020", "eyes021", "eyes022", "eyes023", "eyes024", "eyes025", "eyes026", "eyes027", "eyes028", "eyes029", "eyes030", "eyes031", "eyes032", "eyes033", "eyes034", "eyes035", "eyes036", "eyes037", "eyes038", "eyes039", "eyes040", "eyes041", "eyes042", "eyes043", "eyes044", "eyes045", "eyes046", "eyes047", "eyes048", "eyes049", "eyes050", "eyes051", "eyes052", "eyes053", "eyes054", "eyes055", "eyes056", "eyes057", "eyes058", "eyes059", "eyes060", "eyes061", "eyes062", "eyes063", "eyes064", "eyes065", "eyes066", "eyes067", "eyes068", "eyes069", "eyes070", "eyes071", "eyes072", "eyes073", "eyes074", "eyes075", "eyes076", "eyes077", "eyes078", "eyes079", "eyes080", "eyes081", "eyes082", "eyes083", "eyes084", "eyes085", "eyes086", "eyes087", "eyes088", "eyes089", "eyes090", "eyes091", "eyes092", "eyes093", "eyes094", "eyes095", "eyes096", "eyes097", "eyes098", "eyes099"] }
diff --git a/tests/testsuite/cargo_add/features_deactivated_over_limit/in/Cargo.toml b/tests/testsuite/cargo_add/features_deactivated_over_limit/in/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/features_deactivated_over_limit/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_deactivated_over_limit/in/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/features_deactivated_over_limit/out/Cargo.toml b/tests/testsuite/cargo_add/features_deactivated_over_limit/out/Cargo.toml
index b94cde668a6..4f606dfd79a 100644
--- a/tests/testsuite/cargo_add/features_deactivated_over_limit/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_deactivated_over_limit/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes000", "eyes001", "eyes002", "eyes003", "eyes004", "eyes005", "eyes006", "eyes007", "eyes008", "eyes009", "eyes010", "eyes011", "eyes012", "eyes013", "eyes014", "eyes015", "eyes016", "eyes017", "eyes018", "eyes019", "eyes020", "eyes021", "eyes022", "eyes023", "eyes024", "eyes025", "eyes026", "eyes027", "eyes028", "eyes029"] }
diff --git a/tests/testsuite/cargo_add/features_empty/out/Cargo.toml b/tests/testsuite/cargo_add/features_empty/out/Cargo.toml
index 79d735a12d4..6a322d3a07d 100644
--- a/tests/testsuite/cargo_add/features_empty/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_empty/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/features_multiple_occurrences/out/Cargo.toml b/tests/testsuite/cargo_add/features_multiple_occurrences/out/Cargo.toml
index 0060d24bcbc..299aa8a6486 100644
--- a/tests/testsuite/cargo_add/features_multiple_occurrences/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_multiple_occurrences/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes", "nose"] }
diff --git a/tests/testsuite/cargo_add/features_preserve/in/Cargo.toml b/tests/testsuite/cargo_add/features_preserve/in/Cargo.toml
index 11419b20363..3bef0b6678c 100644
--- a/tests/testsuite/cargo_add/features_preserve/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_preserve/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes"] }
diff --git a/tests/testsuite/cargo_add/features_preserve/out/Cargo.toml b/tests/testsuite/cargo_add/features_preserve/out/Cargo.toml
index 11419b20363..3bef0b6678c 100644
--- a/tests/testsuite/cargo_add/features_preserve/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_preserve/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes"] }
diff --git a/tests/testsuite/cargo_add/features_spaced_values/out/Cargo.toml b/tests/testsuite/cargo_add/features_spaced_values/out/Cargo.toml
index 0060d24bcbc..299aa8a6486 100644
--- a/tests/testsuite/cargo_add/features_spaced_values/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_spaced_values/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes", "nose"] }
diff --git a/tests/testsuite/cargo_add/features_unknown/out/Cargo.toml b/tests/testsuite/cargo_add/features_unknown/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/features_unknown/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_unknown/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/features_unknown_no_features/out/Cargo.toml b/tests/testsuite/cargo_add/features_unknown_no_features/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/features_unknown_no_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/features_unknown_no_features/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/git/out/Cargo.toml b/tests/testsuite/cargo_add/git/out/Cargo.toml
index 7f2d2f18840..eaf9550eb17 100644
--- a/tests/testsuite/cargo_add/git/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
git-package = { git = "[ROOTURL]/git-package", version = "0.3.0" }
diff --git a/tests/testsuite/cargo_add/git_branch/out/Cargo.toml b/tests/testsuite/cargo_add/git_branch/out/Cargo.toml
index 2eb2955810a..426bf23b0e9 100644
--- a/tests/testsuite/cargo_add/git_branch/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_branch/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
git-package = { git = "[ROOTURL]/git-package", branch = "dev", version = "0.3.0" }
diff --git a/tests/testsuite/cargo_add/git_conflicts_namever/out/Cargo.toml b/tests/testsuite/cargo_add/git_conflicts_namever/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/git_conflicts_namever/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_conflicts_namever/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/git_dev/out/Cargo.toml b/tests/testsuite/cargo_add/git_dev/out/Cargo.toml
index ceb1317576d..1dfd9c7f150 100644
--- a/tests/testsuite/cargo_add/git_dev/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_dev/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev-dependencies]
git-package = { git = "[ROOTURL]/git-package" }
diff --git a/tests/testsuite/cargo_add/git_inferred_name/out/Cargo.toml b/tests/testsuite/cargo_add/git_inferred_name/out/Cargo.toml
index 7f2d2f18840..eaf9550eb17 100644
--- a/tests/testsuite/cargo_add/git_inferred_name/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_inferred_name/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
git-package = { git = "[ROOTURL]/git-package", version = "0.3.0" }
diff --git a/tests/testsuite/cargo_add/git_inferred_name_multiple/out/Cargo.toml b/tests/testsuite/cargo_add/git_inferred_name_multiple/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/git_inferred_name_multiple/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_inferred_name_multiple/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/git_multiple_names/out/Cargo.toml b/tests/testsuite/cargo_add/git_multiple_names/out/Cargo.toml
index ba9d3c5ea05..b9b3f97bc1f 100644
--- a/tests/testsuite/cargo_add/git_multiple_names/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_multiple_names/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { git = "[ROOTURL]/git-package", version = "0.3.0" }
diff --git a/tests/testsuite/cargo_add/git_multiple_packages_features/out/Cargo.toml b/tests/testsuite/cargo_add/git_multiple_packages_features/out/Cargo.toml
index 939d818840f..590850d570e 100644
--- a/tests/testsuite/cargo_add/git_multiple_packages_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_multiple_packages_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
package-with-feature = { git = "[ROOTURL]/git-package", version = "0.1.3", features = ["target_feature"] }
diff --git a/tests/testsuite/cargo_add/git_normalized_name/out/Cargo.toml b/tests/testsuite/cargo_add/git_normalized_name/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/git_normalized_name/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_normalized_name/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/git_registry/in/Cargo.toml b/tests/testsuite/cargo_add/git_registry/in/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/git_registry/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_registry/in/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/git_registry/out/Cargo.toml b/tests/testsuite/cargo_add/git_registry/out/Cargo.toml
index 3773d1c8000..59012992777 100644
--- a/tests/testsuite/cargo_add/git_registry/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_registry/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
versioned-package = { git = "[ROOTURL]/versioned-package", version = "0.3.0", registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/git_rev/out/Cargo.toml b/tests/testsuite/cargo_add/git_rev/out/Cargo.toml
index efc00a01a2e..e4b0dd16c89 100644
--- a/tests/testsuite/cargo_add/git_rev/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_rev/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
git-package = { git = "[ROOTURL]/git-package", rev = "[..]", version = "0.3.0" }
diff --git a/tests/testsuite/cargo_add/git_tag/out/Cargo.toml b/tests/testsuite/cargo_add/git_tag/out/Cargo.toml
index 233f26e655d..6f9871e406a 100644
--- a/tests/testsuite/cargo_add/git_tag/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/git_tag/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
git-package = { git = "[ROOTURL]/git-package", tag = "v1.0.0", version = "0.3.0" }
diff --git a/tests/testsuite/cargo_add/infer_prerelease/out/Cargo.toml b/tests/testsuite/cargo_add/infer_prerelease/out/Cargo.toml
index 4a86322add9..058fa41cd4d 100644
--- a/tests/testsuite/cargo_add/infer_prerelease/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/infer_prerelease/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
prerelease_only = "0.2.0-alpha.1"
diff --git a/tests/testsuite/cargo_add/invalid_arg/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_arg/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_arg/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_arg/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_git_name/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_git_name/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_git_name/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_git_name/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/primary/Cargo.toml
index dd275f440b8..fb520246281 100644
--- a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/primary/Cargo.toml
index dd275f440b8..fb520246281 100644
--- a/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_inherit_dependency/out/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/primary/Cargo.toml
index a5740941b2c..7001b02934c 100644
--- a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo.workspace = true
diff --git a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/primary/Cargo.toml
index a5740941b2c..7001b02934c 100644
--- a/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_overwrite_inherit_dependency/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo.workspace = true
diff --git a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency-alt/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency-alt/Cargo.toml
index bb647290158..dbe0e235048 100644
--- a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency-alt/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency-alt/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo-alt"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/primary/Cargo.toml
index dd275f440b8..fb520246281 100644
--- a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency-alt/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency-alt/Cargo.toml
index bb647290158..dbe0e235048 100644
--- a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency-alt/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency-alt/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo-alt"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/primary/Cargo.toml
index dd275f440b8..fb520246281 100644
--- a/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_key_rename_inherit_dependency/out/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_manifest/in/Cargo.toml b/tests/testsuite/cargo_add/invalid_manifest/in/Cargo.toml
index 94ee95994f4..53d6f437a7d 100644
--- a/tests/testsuite/cargo_add/invalid_manifest/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_manifest/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "manifest-invalid-test-fixture"
version = "0.1.0"
+edition = "2015"
[invalid-section]
key = invalid-value
diff --git a/tests/testsuite/cargo_add/invalid_manifest/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_manifest/out/Cargo.toml
index 94ee95994f4..53d6f437a7d 100644
--- a/tests/testsuite/cargo_add/invalid_manifest/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_manifest/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "manifest-invalid-test-fixture"
version = "0.1.0"
+edition = "2015"
[invalid-section]
key = invalid-value
diff --git a/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg b/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg
index a7f889b5983..636a4075104 100644
--- a/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg
+++ b/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg
@@ -23,11 +23,11 @@
expected `"`, `'`
- --> Cargo.toml:8:7
+ --> Cargo.toml:9:7
|
- 8 | key = invalid-value
+ 9 | key = invalid-value
| ^
diff --git a/tests/testsuite/cargo_add/invalid_name_external/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_name_external/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_name_external/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_name_external/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_path/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_path/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_path/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_path/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_path_name/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_path_name/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/invalid_path_name/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_path_name/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_path_name/in/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_path_name/in/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_path_name/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_path_name/in/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_path_name/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/invalid_path_name/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/invalid_path_name/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_path_name/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_path_name/out/primary/Cargo.toml b/tests/testsuite/cargo_add/invalid_path_name/out/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_path_name/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_path_name/out/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_path_self/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_path_self/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_path_self/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_path_self/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_target_empty/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_target_empty/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_target_empty/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_target_empty/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/invalid_vers/out/Cargo.toml b/tests/testsuite/cargo_add/invalid_vers/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/invalid_vers/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/invalid_vers/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/list_features/out/Cargo.toml b/tests/testsuite/cargo_add/list_features/out/Cargo.toml
index 79d735a12d4..6a322d3a07d 100644
--- a/tests/testsuite/cargo_add/list_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/list_features_path/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/list_features_path/in/dependency/Cargo.toml
index 18041a53fd6..fc2766e9898 100644
--- a/tests/testsuite/cargo_add/list_features_path/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "your-face"
version = "0.1.3"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/list_features_path/in/optional/Cargo.toml b/tests/testsuite/cargo_add/list_features_path/in/optional/Cargo.toml
index cb61a05144c..cc9caa204c9 100644
--- a/tests/testsuite/cargo_add/list_features_path/in/optional/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path/in/optional/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "optional-dependency"
version = "0.1.3"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/list_features_path/in/primary/Cargo.toml b/tests/testsuite/cargo_add/list_features_path/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/list_features_path/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/list_features_path/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/list_features_path/out/dependency/Cargo.toml
index 18041a53fd6..fc2766e9898 100644
--- a/tests/testsuite/cargo_add/list_features_path/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "your-face"
version = "0.1.3"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/list_features_path/out/primary/Cargo.toml b/tests/testsuite/cargo_add/list_features_path/out/primary/Cargo.toml
index 2461d0932d4..dd0fd38cab0 100644
--- a/tests/testsuite/cargo_add/list_features_path/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "0.1.3", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/list_features_path_no_default/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/list_features_path_no_default/in/dependency/Cargo.toml
index 18041a53fd6..fc2766e9898 100644
--- a/tests/testsuite/cargo_add/list_features_path_no_default/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path_no_default/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "your-face"
version = "0.1.3"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/list_features_path_no_default/in/optional/Cargo.toml b/tests/testsuite/cargo_add/list_features_path_no_default/in/optional/Cargo.toml
index cb61a05144c..cc9caa204c9 100644
--- a/tests/testsuite/cargo_add/list_features_path_no_default/in/optional/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path_no_default/in/optional/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "optional-dependency"
version = "0.1.3"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/list_features_path_no_default/in/primary/Cargo.toml b/tests/testsuite/cargo_add/list_features_path_no_default/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/list_features_path_no_default/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path_no_default/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/list_features_path_no_default/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/list_features_path_no_default/out/dependency/Cargo.toml
index 18041a53fd6..fc2766e9898 100644
--- a/tests/testsuite/cargo_add/list_features_path_no_default/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path_no_default/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "your-face"
version = "0.1.3"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/list_features_path_no_default/out/primary/Cargo.toml b/tests/testsuite/cargo_add/list_features_path_no_default/out/primary/Cargo.toml
index 0b0400d51fa..c83f1115996 100644
--- a/tests/testsuite/cargo_add/list_features_path_no_default/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/list_features_path_no_default/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "0.1.3", path = "../dependency", default-features = false }
diff --git a/tests/testsuite/cargo_add/locked_changed/out/Cargo.toml b/tests/testsuite/cargo_add/locked_changed/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/locked_changed/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/locked_changed/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/locked_unchanged/in/Cargo.toml b/tests/testsuite/cargo_add/locked_unchanged/in/Cargo.toml
index 5964c87be74..fc6eaf19ac9 100644
--- a/tests/testsuite/cargo_add/locked_unchanged/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/locked_unchanged/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/locked_unchanged/out/Cargo.toml b/tests/testsuite/cargo_add/locked_unchanged/out/Cargo.toml
index 5964c87be74..fc6eaf19ac9 100644
--- a/tests/testsuite/cargo_add/locked_unchanged/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/locked_unchanged/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/lockfile_updated/in/Cargo.toml b/tests/testsuite/cargo_add/lockfile_updated/in/Cargo.toml
index 95276d7c584..d997c502e07 100644
--- a/tests/testsuite/cargo_add/lockfile_updated/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/lockfile_updated/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
unrelateed-crate = "0.2.0"
diff --git a/tests/testsuite/cargo_add/lockfile_updated/out/Cargo.toml b/tests/testsuite/cargo_add/lockfile_updated/out/Cargo.toml
index 3176a986ae7..f6aae27ef31 100644
--- a/tests/testsuite/cargo_add/lockfile_updated/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/lockfile_updated/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/manifest_path_package/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/manifest_path_package/in/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/manifest_path_package/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/manifest_path_package/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/manifest_path_package/in/primary/Cargo.toml b/tests/testsuite/cargo_add/manifest_path_package/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/manifest_path_package/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/manifest_path_package/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/manifest_path_package/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/manifest_path_package/out/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/manifest_path_package/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/manifest_path_package/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/manifest_path_package/out/primary/Cargo.toml b/tests/testsuite/cargo_add/manifest_path_package/out/primary/Cargo.toml
index a693df54f88..f1d5b72ffbc 100644
--- a/tests/testsuite/cargo_add/manifest_path_package/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/manifest_path_package/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/merge_activated_features/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/merge_activated_features/in/dependency/Cargo.toml
index f34d7a68506..fe546f43c8c 100644
--- a/tests/testsuite/cargo_add/merge_activated_features/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/merge_activated_features/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
@@ -11,4 +12,4 @@ test-base = []
test = ["test-base", "default-test-base"]
merge-base = []
merge = ["merge-base", "default-merge-base"]
-unrelated = []
\ No newline at end of file
+unrelated = []
diff --git a/tests/testsuite/cargo_add/merge_activated_features/in/primary/Cargo.toml b/tests/testsuite/cargo_add/merge_activated_features/in/primary/Cargo.toml
index a131c946d9a..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/merge_activated_features/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/merge_activated_features/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
-foo = { workspace = true, features = ["test"] }
\ No newline at end of file
+foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/merge_activated_features/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/merge_activated_features/out/dependency/Cargo.toml
index f34d7a68506..fe546f43c8c 100644
--- a/tests/testsuite/cargo_add/merge_activated_features/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/merge_activated_features/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
@@ -11,4 +12,4 @@ test-base = []
test = ["test-base", "default-test-base"]
merge-base = []
merge = ["merge-base", "default-merge-base"]
-unrelated = []
\ No newline at end of file
+unrelated = []
diff --git a/tests/testsuite/cargo_add/merge_activated_features/out/primary/Cargo.toml b/tests/testsuite/cargo_add/merge_activated_features/out/primary/Cargo.toml
index fb4a1261919..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/merge_activated_features/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/merge_activated_features/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/multiple_conflicts_with_features/out/Cargo.toml b/tests/testsuite/cargo_add/multiple_conflicts_with_features/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/multiple_conflicts_with_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/multiple_conflicts_with_features/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/multiple_conflicts_with_rename/out/Cargo.toml b/tests/testsuite/cargo_add/multiple_conflicts_with_rename/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/multiple_conflicts_with_rename/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/multiple_conflicts_with_rename/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/namever/out/Cargo.toml b/tests/testsuite/cargo_add/namever/out/Cargo.toml
index 1704d3435d1..55f15cb3281 100644
--- a/tests/testsuite/cargo_add/namever/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/namever/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/no_args/out/Cargo.toml b/tests/testsuite/cargo_add/no_args/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/no_args/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/no_args/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/no_default_features/out/Cargo.toml b/tests/testsuite/cargo_add/no_default_features/out/Cargo.toml
index ddd02b1f050..d84f2a432a2 100644
--- a/tests/testsuite/cargo_add/no_default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/no_default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", default-features = false }
diff --git a/tests/testsuite/cargo_add/no_optional/out/Cargo.toml b/tests/testsuite/cargo_add/no_optional/out/Cargo.toml
index 496ac8a6236..c2949b6f230 100644
--- a/tests/testsuite/cargo_add/no_optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/no_optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/no_public/in/Cargo.toml b/tests/testsuite/cargo_add/no_public/in/Cargo.toml
index e9087535be3..c5a3faf5227 100644
--- a/tests/testsuite/cargo_add/no_public/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/no_public/in/Cargo.toml
@@ -4,3 +4,4 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/no_public/out/Cargo.toml b/tests/testsuite/cargo_add/no_public/out/Cargo.toml
index b9f04511677..62d53a42aff 100644
--- a/tests/testsuite/cargo_add/no_public/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/no_public/out/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/offline_empty_cache/out/Cargo.toml b/tests/testsuite/cargo_add/offline_empty_cache/out/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/offline_empty_cache/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/offline_empty_cache/out/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/optional/out/Cargo.toml b/tests/testsuite/cargo_add/optional/out/Cargo.toml
index a8789b033b5..41474d83f4c 100644
--- a/tests/testsuite/cargo_add/optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_default_features/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_default_features/in/Cargo.toml
index c5e01789281..5ea9426f0f3 100644
--- a/tests/testsuite/cargo_add/overwrite_default_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_default_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/overwrite_default_features/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_default_features/out/Cargo.toml
index c5e01789281..5ea9426f0f3 100644
--- a/tests/testsuite/cargo_add/overwrite_default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/in/Cargo.toml
index 73f56a7a321..09efb086861 100644
--- a/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", default-features = true }
diff --git a/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/out/Cargo.toml
index ddd02b1f050..d84f2a432a2 100644
--- a/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_default_features_with_no_default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", default-features = false }
diff --git a/tests/testsuite/cargo_add/overwrite_features/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_features/in/Cargo.toml
index 11419b20363..3bef0b6678c 100644
--- a/tests/testsuite/cargo_add/overwrite_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes"] }
diff --git a/tests/testsuite/cargo_add/overwrite_features/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_features/out/Cargo.toml
index 0060d24bcbc..299aa8a6486 100644
--- a/tests/testsuite/cargo_add/overwrite_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes", "nose"] }
diff --git a/tests/testsuite/cargo_add/overwrite_git_with_path/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_git_with_path/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/overwrite_git_with_path/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_git_with_path/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_git_with_path/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_git_with_path/in/primary/Cargo.toml
index 6cb4d6a7d6d..49adccdbfbd 100644
--- a/tests/testsuite/cargo_add/overwrite_git_with_path/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_git_with_path/in/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { git = "git://git.git", branch = "main", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_git_with_path/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_git_with_path/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/overwrite_git_with_path/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_git_with_path/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_git_with_path/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_git_with_path/out/primary/Cargo.toml
index 27e6e175d6f..5db747fb3c7 100644
--- a/tests/testsuite/cargo_add/overwrite_git_with_path/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_git_with_path/out/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { optional = true, path = "../dependency", version = "0.0.0" }
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/dependency/Cargo.toml
index bed9320474a..643129bc54d 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
-test = []
\ No newline at end of file
+test = []
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/primary/Cargo.toml
index a131c946d9a..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
-foo = { workspace = true, features = ["test"] }
\ No newline at end of file
+foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/dependency/Cargo.toml
index bed9320474a..643129bc54d 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
-test = []
\ No newline at end of file
+test = []
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/primary/Cargo.toml
index fb4a1261919..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_features_noop/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_noop/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_noop/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_noop/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_noop/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_noop/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_noop/in/primary/Cargo.toml
index 2ac789d5554..7001b02934c 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_noop/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_noop/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
-foo.workspace = true
\ No newline at end of file
+foo.workspace = true
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_noop/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_noop/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_noop/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_noop/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_noop/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_noop/out/primary/Cargo.toml
index a5740941b2c..7001b02934c 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_noop/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_noop/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo.workspace = true
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/primary/Cargo.toml
index 228aef664c0..f9a221c3e7c 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
-foo = { workspace = true, optional = true }
\ No newline at end of file
+foo = { workspace = true, optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/primary/Cargo.toml
index 38ff36eb38b..18b7d80251e 100644
--- a/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inherit_optional_noop/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_inline_features/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inline_features/in/Cargo.toml
index 11419b20363..3bef0b6678c 100644
--- a/tests/testsuite/cargo_add/overwrite_inline_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inline_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "99999.0.0", features = ["eyes"] }
diff --git a/tests/testsuite/cargo_add/overwrite_inline_features/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_inline_features/out/Cargo.toml
index 8e9579dc65e..e7eb3977162 100644
--- a/tests/testsuite/cargo_add/overwrite_inline_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_inline_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
unrelateed-crate = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/Cargo.toml
index b69b5d38e76..e6a779dcd5d 100644
--- a/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev-dependencies]
your-face = { version = "0.0.0", path = "dependency", default-features = false, features = ["nose", "mouth"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/dependency/Cargo.toml
index 8243797eb0a..8f1fe052f50 100644
--- a/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_dev_noop/in/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "your-face"
version = "0.0.0"
+edition = "2015"
[features]
mouth = []
diff --git a/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/Cargo.toml
index b69b5d38e76..e6a779dcd5d 100644
--- a/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev-dependencies]
your-face = { version = "0.0.0", path = "dependency", default-features = false, features = ["nose", "mouth"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/dependency/Cargo.toml
index 8243797eb0a..8f1fe052f50 100644
--- a/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_dev_noop/out/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "your-face"
version = "0.0.0"
+edition = "2015"
[features]
mouth = []
diff --git a/tests/testsuite/cargo_add/overwrite_name_noop/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_noop/in/Cargo.toml
index bbaf4f5521c..9f30383f000 100644
--- a/tests/testsuite/cargo_add/overwrite_name_noop/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_noop/in/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["nose", "mouth"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/overwrite_name_noop/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_noop/in/dependency/Cargo.toml
index 8243797eb0a..8f1fe052f50 100644
--- a/tests/testsuite/cargo_add/overwrite_name_noop/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_noop/in/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "your-face"
version = "0.0.0"
+edition = "2015"
[features]
mouth = []
diff --git a/tests/testsuite/cargo_add/overwrite_name_noop/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_noop/out/Cargo.toml
index 7172521917c..bef5158b9d6 100644
--- a/tests/testsuite/cargo_add/overwrite_name_noop/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_noop/out/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["nose", "mouth"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/overwrite_name_noop/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_name_noop/out/dependency/Cargo.toml
index 8243797eb0a..8f1fe052f50 100644
--- a/tests/testsuite/cargo_add/overwrite_name_noop/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_name_noop/out/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "your-face"
version = "0.0.0"
+edition = "2015"
[features]
mouth = []
diff --git a/tests/testsuite/cargo_add/overwrite_no_default_features/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_default_features/in/Cargo.toml
index c5e01789281..5ea9426f0f3 100644
--- a/tests/testsuite/cargo_add/overwrite_no_default_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_default_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/overwrite_no_default_features/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_default_features/out/Cargo.toml
index ddd02b1f050..d84f2a432a2 100644
--- a/tests/testsuite/cargo_add/overwrite_no_default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", default-features = false }
diff --git a/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/in/Cargo.toml
index ddd02b1f050..d84f2a432a2 100644
--- a/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", default-features = false }
diff --git a/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/out/Cargo.toml
index b9e8985c6d4..51deb2f8802 100644
--- a/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_default_features_with_default_features/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0" }
diff --git a/tests/testsuite/cargo_add/overwrite_no_optional/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_optional/in/Cargo.toml
index 496ac8a6236..c2949b6f230 100644
--- a/tests/testsuite/cargo_add/overwrite_no_optional/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_optional/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/overwrite_no_optional/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_optional/out/Cargo.toml
index 496ac8a6236..c2949b6f230 100644
--- a/tests/testsuite/cargo_add/overwrite_no_optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/in/Cargo.toml
index 98e2f7da162..b45d00bc7ca 100644
--- a/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", optional = false }
diff --git a/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/out/Cargo.toml
index a8789b033b5..41474d83f4c 100644
--- a/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_optional_with_optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_no_public/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_public/in/Cargo.toml
index 43d0d8238a1..62d53a42aff 100644
--- a/tests/testsuite/cargo_add/overwrite_no_public/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_public/in/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
-my-package = "0.1.0"
\ No newline at end of file
+my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/overwrite_no_public/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_public/out/Cargo.toml
index b9f04511677..62d53a42aff 100644
--- a/tests/testsuite/cargo_add/overwrite_no_public/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_public/out/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/overwrite_no_public_with_public/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_public_with_public/in/Cargo.toml
index c6e61bdca3f..5c91f58040c 100644
--- a/tests/testsuite/cargo_add/overwrite_no_public_with_public/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_public_with_public/in/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", public = false }
diff --git a/tests/testsuite/cargo_add/overwrite_no_public_with_public/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_no_public_with_public/out/Cargo.toml
index 77fccaa6a57..2cd8b8ddefb 100644
--- a/tests/testsuite/cargo_add/overwrite_no_public_with_public/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_no_public_with_public/out/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", public = true }
diff --git a/tests/testsuite/cargo_add/overwrite_optional/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_optional/in/Cargo.toml
index 496ac8a6236..c2949b6f230 100644
--- a/tests/testsuite/cargo_add/overwrite_optional/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_optional/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/overwrite_optional/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_optional/out/Cargo.toml
index a8789b033b5..41474d83f4c 100644
--- a/tests/testsuite/cargo_add/overwrite_optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/in/Cargo.toml
index a7722da07c7..4906114f837 100644
--- a/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[features]
default = ["your-face"]
diff --git a/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/out/Cargo.toml
index b57286ed575..aa47e130c26 100644
--- a/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_optional_with_no_optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[features]
default = []
diff --git a/tests/testsuite/cargo_add/overwrite_optional_with_optional/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_optional_with_optional/in/Cargo.toml
index e446eca38e0..6450e5c1c4e 100644
--- a/tests/testsuite/cargo_add/overwrite_optional_with_optional/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_optional_with_optional/in/Cargo.toml
@@ -3,9 +3,10 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", optional = true }
[features]
-default = ["dep:my-package1"]
\ No newline at end of file
+default = ["dep:my-package1"]
diff --git a/tests/testsuite/cargo_add/overwrite_optional_with_optional/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_optional_with_optional/out/Cargo.toml
index e68fcdb3cc3..6450e5c1c4e 100644
--- a/tests/testsuite/cargo_add/overwrite_optional_with_optional/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_optional_with_optional/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_path_noop/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_noop/in/Cargo.toml
index bbaf4f5521c..9f30383f000 100644
--- a/tests/testsuite/cargo_add/overwrite_path_noop/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_noop/in/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["nose", "mouth"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/overwrite_path_noop/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_noop/in/dependency/Cargo.toml
index 8243797eb0a..8f1fe052f50 100644
--- a/tests/testsuite/cargo_add/overwrite_path_noop/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_noop/in/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "your-face"
version = "0.0.0"
+edition = "2015"
[features]
mouth = []
diff --git a/tests/testsuite/cargo_add/overwrite_path_noop/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_noop/out/Cargo.toml
index 7172521917c..bef5158b9d6 100644
--- a/tests/testsuite/cargo_add/overwrite_path_noop/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_noop/out/Cargo.toml
@@ -4,6 +4,7 @@ exclude = ["dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = { version = "0.0.0", path = "dependency", optional = true, default-features = false, features = ["nose", "mouth"], registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/overwrite_path_noop/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_noop/out/dependency/Cargo.toml
index 8243797eb0a..8f1fe052f50 100644
--- a/tests/testsuite/cargo_add/overwrite_path_noop/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_noop/out/dependency/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "your-face"
version = "0.0.0"
+edition = "2015"
[features]
mouth = []
diff --git a/tests/testsuite/cargo_add/overwrite_path_with_version/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_with_version/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/overwrite_path_with_version/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_with_version/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_path_with_version/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_with_version/in/primary/Cargo.toml
index 9d20b2240c6..ce617cf2fc7 100644
--- a/tests/testsuite/cargo_add/overwrite_path_with_version/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_with_version/in/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { optional = true, path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/overwrite_path_with_version/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_with_version/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/overwrite_path_with_version/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_with_version/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_path_with_version/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_path_with_version/out/primary/Cargo.toml
index c45f794912e..ec771442a1d 100644
--- a/tests/testsuite/cargo_add/overwrite_path_with_version/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_path_with_version/out/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { optional = true, version = "20.0" }
diff --git a/tests/testsuite/cargo_add/overwrite_preserves_inline_table/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_preserves_inline_table/in/Cargo.toml
index 3dddbbd10e4..55f9a6114c1 100644
--- a/tests/testsuite/cargo_add/overwrite_preserves_inline_table/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_preserves_inline_table/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face={version="99999.0.0",features=["eyes"]} # Hello world
diff --git a/tests/testsuite/cargo_add/overwrite_preserves_inline_table/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_preserves_inline_table/out/Cargo.toml
index f204a895ee9..3e45076bd8f 100644
--- a/tests/testsuite/cargo_add/overwrite_preserves_inline_table/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_preserves_inline_table/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face={ version = "99999.0.0", features = ["eyes", "nose"] } # Hello world
diff --git a/tests/testsuite/cargo_add/overwrite_public/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_public/in/Cargo.toml
index 43d0d8238a1..62d53a42aff 100644
--- a/tests/testsuite/cargo_add/overwrite_public/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_public/in/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
-my-package = "0.1.0"
\ No newline at end of file
+my-package = "0.1.0"
diff --git a/tests/testsuite/cargo_add/overwrite_public/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_public/out/Cargo.toml
index 77fccaa6a57..2cd8b8ddefb 100644
--- a/tests/testsuite/cargo_add/overwrite_public/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_public/out/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", public = true }
diff --git a/tests/testsuite/cargo_add/overwrite_public_with_no_public/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_public_with_no_public/in/Cargo.toml
index cc7ec1a9b7e..2cd8b8ddefb 100644
--- a/tests/testsuite/cargo_add/overwrite_public_with_no_public/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_public_with_no_public/in/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
-my-package = { version = "0.1.0", public = true }
\ No newline at end of file
+my-package = { version = "0.1.0", public = true }
diff --git a/tests/testsuite/cargo_add/overwrite_public_with_no_public/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_public_with_no_public/out/Cargo.toml
index cfa80cc1373..e774dd73b96 100644
--- a/tests/testsuite/cargo_add/overwrite_public_with_no_public/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_public_with_no_public/out/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0" }
diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/in/Cargo.toml
index 4502292454a..3eda58504fc 100644
--- a/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
a1 = { package = "versioned-package", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/out/Cargo.toml
index 9951492da90..ec42011788c 100644
--- a/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_rename_with_no_rename/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
a1 = { package = "versioned-package", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_rename/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_rename_with_rename/in/Cargo.toml
index 4502292454a..3eda58504fc 100644
--- a/tests/testsuite/cargo_add/overwrite_rename_with_rename/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_rename_with_rename/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
a1 = { package = "versioned-package", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_rename/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_rename_with_rename/out/Cargo.toml
index 790f6546cc9..0964c43a147 100644
--- a/tests/testsuite/cargo_add/overwrite_rename_with_rename/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_rename_with_rename/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
a1 = { package = "versioned-package", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/in/Cargo.toml
index 4502292454a..3eda58504fc 100644
--- a/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
a1 = { package = "versioned-package", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/out/Cargo.toml
index 0217d417602..a85cdf76cd2 100644
--- a/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_rename_with_rename_noop/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
a1 = { package = "versioned-package", version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_version_with_git/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_version_with_git/in/Cargo.toml
index fe41f2a90b4..2dd21265d5e 100644
--- a/tests/testsuite/cargo_add/overwrite_version_with_git/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_version_with_git/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
versioned-package = { version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_version_with_git/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_version_with_git/out/Cargo.toml
index a3eabd06559..d90672218df 100644
--- a/tests/testsuite/cargo_add/overwrite_version_with_git/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_version_with_git/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
versioned-package = { version = "0.3.0", optional = true, git = "[ROOTURL]/versioned-package" }
diff --git a/tests/testsuite/cargo_add/overwrite_version_with_path/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_version_with_path/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/overwrite_version_with_path/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_version_with_path/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_version_with_path/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_version_with_path/in/primary/Cargo.toml
index 063b891926b..be70edd27c8 100644
--- a/tests/testsuite/cargo_add/overwrite_version_with_path/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_version_with_path/in/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_version_with_path/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_version_with_path/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/overwrite_version_with_path/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_version_with_path/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_version_with_path/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_version_with_path/out/primary/Cargo.toml
index bd460a11b21..ac9cc3f4ade 100644
--- a/tests/testsuite/cargo_add/overwrite_version_with_path/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_version_with_path/out/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", optional = true, path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/overwrite_with_rename/in/Cargo.toml b/tests/testsuite/cargo_add/overwrite_with_rename/in/Cargo.toml
index fe41f2a90b4..2dd21265d5e 100644
--- a/tests/testsuite/cargo_add/overwrite_with_rename/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_with_rename/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
versioned-package = { version = "0.1.1", optional = true }
diff --git a/tests/testsuite/cargo_add/overwrite_with_rename/out/Cargo.toml b/tests/testsuite/cargo_add/overwrite_with_rename/out/Cargo.toml
index 4b748518116..5f5389bdf46 100644
--- a/tests/testsuite/cargo_add/overwrite_with_rename/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_with_rename/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
renamed = { version = "99999.0.0", package = "versioned-package" }
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep/in/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep/in/primary/Cargo.toml
index 2ac789d5554..7001b02934c 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
-foo.workspace = true
\ No newline at end of file
+foo.workspace = true
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep/out/dependency/Cargo.toml
index 2d247d4d26c..0de6f9b15a8 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep/out/primary/Cargo.toml
index da32f4ead80..efd861f9bab 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { version = "0.0.0", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/dependency/Cargo.toml
index ef9ec7701ba..fe546f43c8c 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/primary/Cargo.toml
index a131c946d9a..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
-foo = { workspace = true, features = ["test"] }
\ No newline at end of file
+foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/dependency/Cargo.toml
index ef9ec7701ba..fe546f43c8c 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
diff --git a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/primary/Cargo.toml b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/primary/Cargo.toml
index 6f95ded6fc4..d97ba43ae3b 100644
--- a/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/overwrite_workspace_dep_features/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { features = ["test"], path = "../dependency", version = "0.0.0" }
diff --git a/tests/testsuite/cargo_add/path/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/path/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path/in/primary/Cargo.toml b/tests/testsuite/cargo_add/path/in/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/path/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path/in/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/path/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path/out/primary/Cargo.toml b/tests/testsuite/cargo_add/path/out/primary/Cargo.toml
index 93476d743f6..4411f6926bf 100644
--- a/tests/testsuite/cargo_add/path/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path/out/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/path_dev/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_dev/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path_dev/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_dev/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_dev/in/primary/Cargo.toml b/tests/testsuite/cargo_add/path_dev/in/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/path_dev/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_dev/in/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_dev/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_dev/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path_dev/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_dev/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_dev/out/primary/Cargo.toml b/tests/testsuite/cargo_add/path_dev/out/primary/Cargo.toml
index 92be59dc6d0..6105658fc54 100644
--- a/tests/testsuite/cargo_add/path_dev/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_dev/out/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev-dependencies]
cargo-list-test-fixture-dependency = { path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/path_inferred_name/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path_inferred_name/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_inferred_name/in/primary/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name/in/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/path_inferred_name/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name/in/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_inferred_name/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path_inferred_name/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_inferred_name/out/primary/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name/out/primary/Cargo.toml
index 93476d743f6..4411f6926bf 100644
--- a/tests/testsuite/cargo_add/path_inferred_name/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name/out/primary/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/dependency/Cargo.toml
index 34157f41182..9805a81ed92 100644
--- a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "your-face"
version = "0.1.3"
+edition = "2015"
[dependencies]
toml_edit = "0.1.5"
diff --git a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/optional/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/optional/Cargo.toml
index 0216dba8987..053e952f434 100644
--- a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/optional/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/optional/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "optional-dep"
version = "0.1.3"
+edition = "2015"
[dependencies]
toml_edit = "0.1.5"
diff --git a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/primary/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/dependency/Cargo.toml
index 34157f41182..9805a81ed92 100644
--- a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "your-face"
version = "0.1.3"
+edition = "2015"
[dependencies]
toml_edit = "0.1.5"
diff --git a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/primary/Cargo.toml b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_inferred_name_conflicts_full_feature/out/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_normalized_name/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_normalized_name/in/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path_normalized_name/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_normalized_name/in/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_normalized_name/in/primary/Cargo.toml b/tests/testsuite/cargo_add/path_normalized_name/in/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/path_normalized_name/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_normalized_name/in/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_normalized_name/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/path_normalized_name/out/dependency/Cargo.toml
index cbe244113c1..c645a3371c0 100644
--- a/tests/testsuite/cargo_add/path_normalized_name/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_normalized_name/out/dependency/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/path_normalized_name/out/primary/Cargo.toml b/tests/testsuite/cargo_add/path_normalized_name/out/primary/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/path_normalized_name/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/path_normalized_name/out/primary/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/preserve_sorted/in/Cargo.toml b/tests/testsuite/cargo_add/preserve_sorted/in/Cargo.toml
index 550e41b07e9..e471917ee16 100644
--- a/tests/testsuite/cargo_add/preserve_sorted/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/preserve_sorted/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/preserve_sorted/out/Cargo.toml b/tests/testsuite/cargo_add/preserve_sorted/out/Cargo.toml
index cacd510ccdf..83a395e466a 100644
--- a/tests/testsuite/cargo_add/preserve_sorted/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/preserve_sorted/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/preserve_unsorted/in/Cargo.toml b/tests/testsuite/cargo_add/preserve_unsorted/in/Cargo.toml
index f803120a3a0..601517dbc18 100644
--- a/tests/testsuite/cargo_add/preserve_unsorted/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/preserve_unsorted/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
versioned-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/preserve_unsorted/out/Cargo.toml b/tests/testsuite/cargo_add/preserve_unsorted/out/Cargo.toml
index 244a06ab9ae..9caf7fe7a33 100644
--- a/tests/testsuite/cargo_add/preserve_unsorted/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/preserve_unsorted/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
versioned-package = "0.1.1"
diff --git a/tests/testsuite/cargo_add/public/in/Cargo.toml b/tests/testsuite/cargo_add/public/in/Cargo.toml
index e9087535be3..c5a3faf5227 100644
--- a/tests/testsuite/cargo_add/public/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/public/in/Cargo.toml
@@ -4,3 +4,4 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/public/out/Cargo.toml b/tests/testsuite/cargo_add/public/out/Cargo.toml
index 77fccaa6a57..2cd8b8ddefb 100644
--- a/tests/testsuite/cargo_add/public/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/public/out/Cargo.toml
@@ -4,6 +4,7 @@ cargo-features = ["public-dependency"]
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = { version = "0.1.0", public = true }
diff --git a/tests/testsuite/cargo_add/quiet/out/Cargo.toml b/tests/testsuite/cargo_add/quiet/out/Cargo.toml
index 79d735a12d4..6a322d3a07d 100644
--- a/tests/testsuite/cargo_add/quiet/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/quiet/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
your-face = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/registry/in/Cargo.toml b/tests/testsuite/cargo_add/registry/in/Cargo.toml
index 3ecdb668167..946b7c86bf0 100644
--- a/tests/testsuite/cargo_add/registry/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/registry/in/Cargo.toml
@@ -3,3 +3,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/registry/out/Cargo.toml b/tests/testsuite/cargo_add/registry/out/Cargo.toml
index e856bee5df8..f39670d5209 100644
--- a/tests/testsuite/cargo_add/registry/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/registry/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package1 = { version = "99999.0.0", registry = "alternative" }
diff --git a/tests/testsuite/cargo_add/rename/out/Cargo.toml b/tests/testsuite/cargo_add/rename/out/Cargo.toml
index ebcfbbd99dd..544aa2b71a1 100644
--- a/tests/testsuite/cargo_add/rename/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/rename/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
renamed = { version = "99999.0.0", package = "my-package" }
diff --git a/tests/testsuite/cargo_add/require_weak/in/Cargo.toml b/tests/testsuite/cargo_add/require_weak/in/Cargo.toml
index 54faf173a00..e0cad0152a5 100644
--- a/tests/testsuite/cargo_add/require_weak/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/require_weak/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[features]
eyes = ["your-face?/eyes"]
diff --git a/tests/testsuite/cargo_add/require_weak/out/Cargo.toml b/tests/testsuite/cargo_add/require_weak/out/Cargo.toml
index a0e4b9753bc..243d293a974 100644
--- a/tests/testsuite/cargo_add/require_weak/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/require_weak/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[features]
eyes = ["your-face/eyes"]
diff --git a/tests/testsuite/cargo_add/rust_version_ignore/in/Cargo.toml b/tests/testsuite/cargo_add/rust_version_ignore/in/Cargo.toml
index b24cd9deb20..aa6b045f12b 100644
--- a/tests/testsuite/cargo_add/rust_version_ignore/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_ignore/in/Cargo.toml
@@ -3,4 +3,5 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.68"
diff --git a/tests/testsuite/cargo_add/rust_version_ignore/out/Cargo.toml b/tests/testsuite/cargo_add/rust_version_ignore/out/Cargo.toml
index 62164a3445a..280ebf2e7a6 100644
--- a/tests/testsuite/cargo_add/rust_version_ignore/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_ignore/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.68"
[dependencies]
diff --git a/tests/testsuite/cargo_add/rust_version_incompatible/in/Cargo.toml b/tests/testsuite/cargo_add/rust_version_incompatible/in/Cargo.toml
index ef6fce441ff..0e3bf5beb31 100644
--- a/tests/testsuite/cargo_add/rust_version_incompatible/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_incompatible/in/Cargo.toml
@@ -3,4 +3,5 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.56"
diff --git a/tests/testsuite/cargo_add/rust_version_incompatible/out/Cargo.toml b/tests/testsuite/cargo_add/rust_version_incompatible/out/Cargo.toml
index ef6fce441ff..0e3bf5beb31 100644
--- a/tests/testsuite/cargo_add/rust_version_incompatible/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_incompatible/out/Cargo.toml
@@ -3,4 +3,5 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.56"
diff --git a/tests/testsuite/cargo_add/rust_version_latest/in/Cargo.toml b/tests/testsuite/cargo_add/rust_version_latest/in/Cargo.toml
index d9358a5de5e..46e1989405f 100644
--- a/tests/testsuite/cargo_add/rust_version_latest/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_latest/in/Cargo.toml
@@ -3,4 +3,5 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.72"
diff --git a/tests/testsuite/cargo_add/rust_version_latest/out/Cargo.toml b/tests/testsuite/cargo_add/rust_version_latest/out/Cargo.toml
index f824b41c3d0..ee5ed581d8a 100644
--- a/tests/testsuite/cargo_add/rust_version_latest/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_latest/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.72"
[dependencies]
diff --git a/tests/testsuite/cargo_add/rust_version_older/in/Cargo.toml b/tests/testsuite/cargo_add/rust_version_older/in/Cargo.toml
index 6fd6f12324f..644f41d9f6c 100644
--- a/tests/testsuite/cargo_add/rust_version_older/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_older/in/Cargo.toml
@@ -3,4 +3,5 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.70"
diff --git a/tests/testsuite/cargo_add/rust_version_older/out/Cargo.toml b/tests/testsuite/cargo_add/rust_version_older/out/Cargo.toml
index 14737e3288d..1bf181884c0 100644
--- a/tests/testsuite/cargo_add/rust_version_older/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/rust_version_older/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
rust-version = "1.70"
[dependencies]
diff --git a/tests/testsuite/cargo_add/sorted_table_with_dotted_item/in/Cargo.toml b/tests/testsuite/cargo_add/sorted_table_with_dotted_item/in/Cargo.toml
index 19aa939d9d6..9665e4db9ce 100644
--- a/tests/testsuite/cargo_add/sorted_table_with_dotted_item/in/Cargo.toml
+++ b/tests/testsuite/cargo_add/sorted_table_with_dotted_item/in/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
toml = "0.1.1"
@@ -10,4 +11,5 @@ versioned-package = "0.1.1"
[dependencies.my-build-package1]
version = "0.1.1"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/sorted_table_with_dotted_item/out/Cargo.toml b/tests/testsuite/cargo_add/sorted_table_with_dotted_item/out/Cargo.toml
index 008ff4f62e4..e41fd7b6058 100644
--- a/tests/testsuite/cargo_add/sorted_table_with_dotted_item/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/sorted_table_with_dotted_item/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
toml = "0.1.1"
@@ -11,4 +12,5 @@ versioned-package = "0.1.1"
[dependencies.my-build-package1]
version = "0.1.1"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/target/out/Cargo.toml b/tests/testsuite/cargo_add/target/out/Cargo.toml
index 9c96ede5148..384def08952 100644
--- a/tests/testsuite/cargo_add/target/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/target/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[target.i686-unknown-linux-gnu.dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/target_cfg/out/Cargo.toml b/tests/testsuite/cargo_add/target_cfg/out/Cargo.toml
index 212ec571bf5..7779fcabdfa 100644
--- a/tests/testsuite/cargo_add/target_cfg/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/target_cfg/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[target."cfg(unix)".dependencies]
my-package1 = "99999.0.0"
diff --git a/tests/testsuite/cargo_add/unknown_inherited_feature/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/unknown_inherited_feature/in/dependency/Cargo.toml
index 9a7bc7f7761..4b2f5578d70 100644
--- a/tests/testsuite/cargo_add/unknown_inherited_feature/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/unknown_inherited_feature/in/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
diff --git a/tests/testsuite/cargo_add/unknown_inherited_feature/in/primary/Cargo.toml b/tests/testsuite/cargo_add/unknown_inherited_feature/in/primary/Cargo.toml
index fb4a1261919..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/unknown_inherited_feature/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/unknown_inherited_feature/in/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/unknown_inherited_feature/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/unknown_inherited_feature/out/dependency/Cargo.toml
index 9a7bc7f7761..4b2f5578d70 100644
--- a/tests/testsuite/cargo_add/unknown_inherited_feature/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/unknown_inherited_feature/out/dependency/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "foo"
version = "0.0.0"
+edition = "2015"
[features]
default-base = []
diff --git a/tests/testsuite/cargo_add/unknown_inherited_feature/out/primary/Cargo.toml b/tests/testsuite/cargo_add/unknown_inherited_feature/out/primary/Cargo.toml
index fb4a1261919..0951f9874c0 100644
--- a/tests/testsuite/cargo_add/unknown_inherited_feature/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/unknown_inherited_feature/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "bar"
version = "0.0.0"
+edition = "2015"
[dependencies]
foo = { workspace = true, features = ["test"] }
diff --git a/tests/testsuite/cargo_add/vers/out/Cargo.toml b/tests/testsuite/cargo_add/vers/out/Cargo.toml
index c6ca3d67afa..444c6233807 100644
--- a/tests/testsuite/cargo_add/vers/out/Cargo.toml
+++ b/tests/testsuite/cargo_add/vers/out/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
my-package = ">=0.1.1"
diff --git a/tests/testsuite/cargo_add/workspace_name/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/workspace_name/in/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/workspace_name/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_name/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_name/in/primary/Cargo.toml b/tests/testsuite/cargo_add/workspace_name/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/workspace_name/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_name/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_name/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/workspace_name/out/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/workspace_name/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_name/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_name/out/primary/Cargo.toml b/tests/testsuite/cargo_add/workspace_name/out/primary/Cargo.toml
index a693df54f88..f1d5b72ffbc 100644
--- a/tests/testsuite/cargo_add/workspace_name/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_name/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/workspace_path/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/workspace_path/in/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/workspace_path/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_path/in/primary/Cargo.toml b/tests/testsuite/cargo_add/workspace_path/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/workspace_path/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_path/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/workspace_path/out/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/workspace_path/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_path/out/primary/Cargo.toml b/tests/testsuite/cargo_add/workspace_path/out/primary/Cargo.toml
index a693df54f88..f1d5b72ffbc 100644
--- a/tests/testsuite/cargo_add/workspace_path/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dependencies]
cargo-list-test-fixture-dependency = { version = "0.0.0", path = "../dependency" }
diff --git a/tests/testsuite/cargo_add/workspace_path_dev/in/dependency/Cargo.toml b/tests/testsuite/cargo_add/workspace_path_dev/in/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/workspace_path_dev/in/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path_dev/in/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_path_dev/in/primary/Cargo.toml b/tests/testsuite/cargo_add/workspace_path_dev/in/primary/Cargo.toml
index 5e20016d710..8194d1deb0e 100644
--- a/tests/testsuite/cargo_add/workspace_path_dev/in/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path_dev/in/primary/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_path_dev/out/dependency/Cargo.toml b/tests/testsuite/cargo_add/workspace_path_dev/out/dependency/Cargo.toml
index ca4f36d72f7..3eb4aede9da 100644
--- a/tests/testsuite/cargo_add/workspace_path_dev/out/dependency/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path_dev/out/dependency/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "cargo-list-test-fixture-dependency"
version = "0.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_add/workspace_path_dev/out/primary/Cargo.toml b/tests/testsuite/cargo_add/workspace_path_dev/out/primary/Cargo.toml
index 8dfa5c218b3..4763087f7da 100644
--- a/tests/testsuite/cargo_add/workspace_path_dev/out/primary/Cargo.toml
+++ b/tests/testsuite/cargo_add/workspace_path_dev/out/primary/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
+edition = "2015"
[dev-dependencies]
cargo-list-test-fixture-dependency = { path = "../dependency" }
diff --git a/tests/testsuite/cargo_bench/no_keep_going/in/Cargo.toml b/tests/testsuite/cargo_bench/no_keep_going/in/Cargo.toml
index c35d63273aa..2af4409b763 100644
--- a/tests/testsuite/cargo_bench/no_keep_going/in/Cargo.toml
+++ b/tests/testsuite/cargo_bench/no_keep_going/in/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.1.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_features.rs b/tests/testsuite/cargo_features.rs
index bbdd7f296b6..5a8eddf28ea 100644
--- a/tests/testsuite/cargo_features.rs
+++ b/tests/testsuite/cargo_features.rs
@@ -12,6 +12,7 @@ fn feature_required() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -77,6 +78,7 @@ fn feature_required_dependency() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
im-a-teapot = true
"#,
)
@@ -89,6 +91,7 @@ fn feature_required_dependency() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -168,6 +171,7 @@ fn unknown_feature() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -197,6 +201,7 @@ fn stable_feature_warns() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -226,6 +231,7 @@ fn allow_features() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -289,6 +295,7 @@ fn allow_features_to_rustc() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -329,6 +336,7 @@ fn allow_features_in_cfg() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -421,6 +429,7 @@ fn nightly_feature_requires_nightly() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -463,6 +472,7 @@ fn nightly_feature_requires_nightly_in_dep() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -478,6 +488,7 @@ fn nightly_feature_requires_nightly_in_dep() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -532,6 +543,7 @@ fn cant_publish() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -576,6 +588,7 @@ fn z_flags_rejected() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
im-a-teapot = true
"#,
@@ -631,6 +644,7 @@ fn publish_allowed() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -669,6 +683,7 @@ fn wrong_position() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
cargo-features = ["test-dummy-unstable"]
"#,
)
@@ -680,9 +695,9 @@ fn wrong_position() {
.with_stderr(
"\
[ERROR] the field `cargo-features` should be set at the top of Cargo.toml before any tables
- --> Cargo.toml:5:34
+ --> Cargo.toml:6:34
|
-5 | cargo-features = [\"test-dummy-unstable\"]
+6 | cargo-features = [\"test-dummy-unstable\"]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
",
diff --git a/tests/testsuite/cargo_new/add_members_to_workspace_without_members/in/Cargo.toml b/tests/testsuite/cargo_new/add_members_to_workspace_without_members/in/Cargo.toml
index 005ee0dc477..0365b31331b 100644
--- a/tests/testsuite/cargo_new/add_members_to_workspace_without_members/in/Cargo.toml
+++ b/tests/testsuite/cargo_new/add_members_to_workspace_without_members/in/Cargo.toml
@@ -3,4 +3,4 @@
[package]
name = "foo"
version = "0.1.0"
-edition = "2021"
\ No newline at end of file
+edition = "2021"
diff --git a/tests/testsuite/cargo_remove/avoid_empty_tables/out/Cargo.toml b/tests/testsuite/cargo_remove/avoid_empty_tables/out/Cargo.toml
index 09a9ee86e81..dc182ba6ae7 100644
--- a/tests/testsuite/cargo_remove/avoid_empty_tables/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/avoid_empty_tables/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/build/out/Cargo.toml b/tests/testsuite/cargo_remove/build/out/Cargo.toml
index babdc0a9990..d2b27a81b18 100644
--- a/tests/testsuite/cargo_remove/build/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/build/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/dev/out/Cargo.toml b/tests/testsuite/cargo_remove/dev/out/Cargo.toml
index 40744a56671..c2c5aa7ad7e 100644
--- a/tests/testsuite/cargo_remove/dev/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/dev/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/dry_run/out/Cargo.toml b/tests/testsuite/cargo_remove/dry_run/out/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/dry_run/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/dry_run/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde/Cargo.toml b/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde/Cargo.toml
index c05589abafa..574365bb9eb 100644
--- a/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "serde"
version = "1.0.0"
+edition = "2015"
[dependencies]
serde_derive = { path = "../serde_derive" }
diff --git a/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde_derive/Cargo.toml b/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde_derive/Cargo.toml
index 2b9b48b50c5..8f3f1cebe1f 100644
--- a/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde_derive/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_keep_used_patch/in/serde_derive/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "serde_derive"
version = "1.0.0"
+edition = "2015"
[dev-dependencies]
serde_json = "1.0.0"
diff --git a/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde/Cargo.toml b/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde/Cargo.toml
index a91d8ebd58f..bf24f27622e 100644
--- a/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde/Cargo.toml
@@ -3,4 +3,5 @@
[package]
name = "serde"
version = "1.0.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde_derive/Cargo.toml b/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde_derive/Cargo.toml
index 2b9b48b50c5..8f3f1cebe1f 100644
--- a/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde_derive/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_keep_used_patch/out/serde_derive/Cargo.toml
@@ -3,6 +3,7 @@
[package]
name = "serde_derive"
version = "1.0.0"
+edition = "2015"
[dev-dependencies]
serde_json = "1.0.0"
diff --git a/tests/testsuite/cargo_remove/gc_patch/mod.rs b/tests/testsuite/cargo_remove/gc_patch/mod.rs
index e1fad49e336..003ff877872 100644
--- a/tests/testsuite/cargo_remove/gc_patch/mod.rs
+++ b/tests/testsuite/cargo_remove/gc_patch/mod.rs
@@ -42,6 +42,7 @@ fn case() {
[package]\n\
name = \"my-project\"\n\
version = \"0.1.0\"\n\
+ edition = \"2015\"\n\
\n\
[dependencies]\n\
bar = {{ git = \"{git_project1}\" }}\n\
diff --git a/tests/testsuite/cargo_remove/gc_patch/out/Cargo.toml b/tests/testsuite/cargo_remove/gc_patch/out/Cargo.toml
index 2d8c2211523..005e9d12ea6 100644
--- a/tests/testsuite/cargo_remove/gc_patch/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_patch/out/Cargo.toml
@@ -4,6 +4,7 @@ members = [ "my-member" ]
[package]
name = "my-project"
version = "0.1.0"
+edition = "2015"
[patch.crates-io]
bar = { git = "[ROOTURL]/bar2" }
diff --git a/tests/testsuite/cargo_remove/gc_profile/in/Cargo.toml b/tests/testsuite/cargo_remove/gc_profile/in/Cargo.toml
index d781ad5a5f2..0430b02302d 100644
--- a/tests/testsuite/cargo_remove/gc_profile/in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_profile/in/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/gc_profile/out/Cargo.toml b/tests/testsuite/cargo_remove/gc_profile/out/Cargo.toml
index 21b43fe6826..11d69d9eae9 100644
--- a/tests/testsuite/cargo_remove/gc_profile/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_profile/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/gc_replace/in/my-package/Cargo.toml b/tests/testsuite/cargo_remove/gc_replace/in/my-package/Cargo.toml
index bee343a8b15..1ed34369cff 100644
--- a/tests/testsuite/cargo_remove/gc_replace/in/my-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_replace/in/my-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/gc_replace/out/my-package/Cargo.toml b/tests/testsuite/cargo_remove/gc_replace/out/my-package/Cargo.toml
index 36ddf7a0499..369b1f66b5a 100644
--- a/tests/testsuite/cargo_remove/gc_replace/out/my-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/gc_replace/out/my-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_arg/out/Cargo.toml b/tests/testsuite/cargo_remove/invalid_arg/out/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/invalid_arg/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_arg/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_dep/out/Cargo.toml b/tests/testsuite/cargo_remove/invalid_dep/out/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/invalid_dep/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_dep/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_package/out/dep-a/Cargo.toml b/tests/testsuite/cargo_remove/invalid_package/out/dep-a/Cargo.toml
index 7e87ce314da..45af1b76eb0 100644
--- a/tests/testsuite/cargo_remove/invalid_package/out/dep-a/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_package/out/dep-a/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-a"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_package/out/dep-b/Cargo.toml b/tests/testsuite/cargo_remove/invalid_package/out/dep-b/Cargo.toml
index 37d2d3ddf0b..bfbbaa6a036 100644
--- a/tests/testsuite/cargo_remove/invalid_package/out/dep-b/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_package/out/dep-b/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-b"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-a/Cargo.toml b/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-a/Cargo.toml
index 7e87ce314da..45af1b76eb0 100644
--- a/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-a/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-a/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-a"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-b/Cargo.toml b/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-b/Cargo.toml
index 37d2d3ddf0b..bfbbaa6a036 100644
--- a/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-b/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_package_multiple/out/dep-b/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-b"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_section/out/Cargo.toml b/tests/testsuite/cargo_remove/invalid_section/out/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/invalid_section/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_section/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_section_dep/out/Cargo.toml b/tests/testsuite/cargo_remove/invalid_section_dep/out/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/invalid_section_dep/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_section_dep/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_target/out/Cargo.toml b/tests/testsuite/cargo_remove/invalid_target/out/Cargo.toml
index 14747c70b50..6ae66d52f8f 100644
--- a/tests/testsuite/cargo_remove/invalid_target/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_target/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-target-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/invalid_target_dep/out/Cargo.toml b/tests/testsuite/cargo_remove/invalid_target_dep/out/Cargo.toml
index 14747c70b50..6ae66d52f8f 100644
--- a/tests/testsuite/cargo_remove/invalid_target_dep/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/invalid_target_dep/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-target-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/multiple_deps/out/Cargo.toml b/tests/testsuite/cargo_remove/multiple_deps/out/Cargo.toml
index 53cde082936..48cbd96ffb3 100644
--- a/tests/testsuite/cargo_remove/multiple_deps/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/multiple_deps/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/multiple_dev/out/Cargo.toml b/tests/testsuite/cargo_remove/multiple_dev/out/Cargo.toml
index b435e33ebf2..4db97a96175 100644
--- a/tests/testsuite/cargo_remove/multiple_dev/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/multiple_dev/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/no_arg/out/Cargo.toml b/tests/testsuite/cargo_remove/no_arg/out/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/no_arg/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/no_arg/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/offline/out/Cargo.toml b/tests/testsuite/cargo_remove/offline/out/Cargo.toml
index b8628eed1c2..5c6a0059b59 100644
--- a/tests/testsuite/cargo_remove/offline/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/offline/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/optional_dep_feature/out/Cargo.toml b/tests/testsuite/cargo_remove/optional_dep_feature/out/Cargo.toml
index f9613bd3092..afcabce4ee1 100644
--- a/tests/testsuite/cargo_remove/optional_dep_feature/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/optional_dep_feature/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/optional_dep_feature_formatting/in/Cargo.toml b/tests/testsuite/cargo_remove/optional_dep_feature_formatting/in/Cargo.toml
index 01755d687a3..f3ec28dbedb 100644
--- a/tests/testsuite/cargo_remove/optional_dep_feature_formatting/in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/optional_dep_feature_formatting/in/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/optional_dep_feature_formatting/out/Cargo.toml b/tests/testsuite/cargo_remove/optional_dep_feature_formatting/out/Cargo.toml
index 0398c8beb06..90648d8a57b 100644
--- a/tests/testsuite/cargo_remove/optional_dep_feature_formatting/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/optional_dep_feature_formatting/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/optional_feature/out/Cargo.toml b/tests/testsuite/cargo_remove/optional_feature/out/Cargo.toml
index 9ac0b1b3252..b1064b23e99 100644
--- a/tests/testsuite/cargo_remove/optional_feature/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/optional_feature/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/package/out/dep-a/Cargo.toml b/tests/testsuite/cargo_remove/package/out/dep-a/Cargo.toml
index 5f2bfe6fb1a..f922b7fcddc 100644
--- a/tests/testsuite/cargo_remove/package/out/dep-a/Cargo.toml
+++ b/tests/testsuite/cargo_remove/package/out/dep-a/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-a"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/package/out/dep-b/Cargo.toml b/tests/testsuite/cargo_remove/package/out/dep-b/Cargo.toml
index 37d2d3ddf0b..bfbbaa6a036 100644
--- a/tests/testsuite/cargo_remove/package/out/dep-b/Cargo.toml
+++ b/tests/testsuite/cargo_remove/package/out/dep-b/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-b"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/remove-basic.in/Cargo.toml b/tests/testsuite/cargo_remove/remove-basic.in/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/remove-basic.in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/remove-basic.in/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/remove-package.in/dep-a/Cargo.toml b/tests/testsuite/cargo_remove/remove-package.in/dep-a/Cargo.toml
index 7e87ce314da..45af1b76eb0 100644
--- a/tests/testsuite/cargo_remove/remove-package.in/dep-a/Cargo.toml
+++ b/tests/testsuite/cargo_remove/remove-package.in/dep-a/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-a"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/remove-package.in/dep-b/Cargo.toml b/tests/testsuite/cargo_remove/remove-package.in/dep-b/Cargo.toml
index 37d2d3ddf0b..bfbbaa6a036 100644
--- a/tests/testsuite/cargo_remove/remove-package.in/dep-b/Cargo.toml
+++ b/tests/testsuite/cargo_remove/remove-package.in/dep-b/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dep-b"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/remove-target.in/Cargo.toml b/tests/testsuite/cargo_remove/remove-target.in/Cargo.toml
index 14747c70b50..6ae66d52f8f 100644
--- a/tests/testsuite/cargo_remove/remove-target.in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/remove-target.in/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-target-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/remove_basic/out/Cargo.toml b/tests/testsuite/cargo_remove/remove_basic/out/Cargo.toml
index b8628eed1c2..5c6a0059b59 100644
--- a/tests/testsuite/cargo_remove/remove_basic/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/remove_basic/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/skip_gc_glob_profile/in/Cargo.toml b/tests/testsuite/cargo_remove/skip_gc_glob_profile/in/Cargo.toml
index a25e33ae09b..f0a11c27589 100644
--- a/tests/testsuite/cargo_remove/skip_gc_glob_profile/in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/skip_gc_glob_profile/in/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
@@ -10,4 +11,4 @@ path = "src/main.rs"
toml = "0.1"
[profile.dev.package."*"]
-opt-level = 3
\ No newline at end of file
+opt-level = 3
diff --git a/tests/testsuite/cargo_remove/skip_gc_glob_profile/out/Cargo.toml b/tests/testsuite/cargo_remove/skip_gc_glob_profile/out/Cargo.toml
index 76e3bcf7751..28bd8bdda72 100644
--- a/tests/testsuite/cargo_remove/skip_gc_glob_profile/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/skip_gc_glob_profile/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/target/out/Cargo.toml b/tests/testsuite/cargo_remove/target/out/Cargo.toml
index e29fbbd0030..aef5eef333d 100644
--- a/tests/testsuite/cargo_remove/target/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/target/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-target-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/target_build/out/Cargo.toml b/tests/testsuite/cargo_remove/target_build/out/Cargo.toml
index 7353c7a897b..6b337d836de 100644
--- a/tests/testsuite/cargo_remove/target_build/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/target_build/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-target-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/target_dev/out/Cargo.toml b/tests/testsuite/cargo_remove/target_dev/out/Cargo.toml
index a477b3d55cd..8c7a5c947c3 100644
--- a/tests/testsuite/cargo_remove/target_dev/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/target_dev/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-target-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/update_lock_file/in/Cargo.toml b/tests/testsuite/cargo_remove/update_lock_file/in/Cargo.toml
index 340f06cda79..fe49a10648d 100644
--- a/tests/testsuite/cargo_remove/update_lock_file/in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/update_lock_file/in/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/update_lock_file/out/Cargo.toml b/tests/testsuite/cargo_remove/update_lock_file/out/Cargo.toml
index 5e7d7f0a06e..5f2ea51f630 100644
--- a/tests/testsuite/cargo_remove/update_lock_file/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/update_lock_file/out/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "cargo-remove-test-fixture"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace/in/my-package/Cargo.toml b/tests/testsuite/cargo_remove/workspace/in/my-package/Cargo.toml
index 6690d593ba1..778440d7a7e 100644
--- a/tests/testsuite/cargo_remove/workspace/in/my-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace/in/my-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace/out/my-package/Cargo.toml b/tests/testsuite/cargo_remove/workspace/out/my-package/Cargo.toml
index 402780535e2..3b492a8b521 100644
--- a/tests/testsuite/cargo_remove/workspace/out/my-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace/out/my-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace_non_virtual/in/Cargo.toml b/tests/testsuite/cargo_remove/workspace_non_virtual/in/Cargo.toml
index dbac8ab442e..3dc24a08005 100644
--- a/tests/testsuite/cargo_remove/workspace_non_virtual/in/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace_non_virtual/in/Cargo.toml
@@ -7,6 +7,7 @@ semver = "0.1.0"
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace_non_virtual/out/Cargo.toml b/tests/testsuite/cargo_remove/workspace_non_virtual/out/Cargo.toml
index 9a3261484d1..24294afdf9e 100644
--- a/tests/testsuite/cargo_remove/workspace_non_virtual/out/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace_non_virtual/out/Cargo.toml
@@ -4,6 +4,7 @@ members = [ "my-member" ]
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace_preserved/in/my-other-package/Cargo.toml b/tests/testsuite/cargo_remove/workspace_preserved/in/my-other-package/Cargo.toml
index d65972868cc..93ed69c54f3 100644
--- a/tests/testsuite/cargo_remove/workspace_preserved/in/my-other-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace_preserved/in/my-other-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-other-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace_preserved/in/my-package/Cargo.toml b/tests/testsuite/cargo_remove/workspace_preserved/in/my-package/Cargo.toml
index 6690d593ba1..778440d7a7e 100644
--- a/tests/testsuite/cargo_remove/workspace_preserved/in/my-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace_preserved/in/my-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace_preserved/out/my-other-package/Cargo.toml b/tests/testsuite/cargo_remove/workspace_preserved/out/my-other-package/Cargo.toml
index d65972868cc..93ed69c54f3 100644
--- a/tests/testsuite/cargo_remove/workspace_preserved/out/my-other-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace_preserved/out/my-other-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-other-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_remove/workspace_preserved/out/my-package/Cargo.toml b/tests/testsuite/cargo_remove/workspace_preserved/out/my-package/Cargo.toml
index 402780535e2..3b492a8b521 100644
--- a/tests/testsuite/cargo_remove/workspace_preserved/out/my-package/Cargo.toml
+++ b/tests/testsuite/cargo_remove/workspace_preserved/out/my-package/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "my-package"
version = "0.1.0"
+edition = "2015"
[[bin]]
name = "main"
diff --git a/tests/testsuite/cargo_targets.rs b/tests/testsuite/cargo_targets.rs
index 52d97a8fb84..b22acfeb929 100644
--- a/tests/testsuite/cargo_targets.rs
+++ b/tests/testsuite/cargo_targets.rs
@@ -11,6 +11,7 @@ fn warn_unmatched_target_filters() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
test = false
@@ -40,6 +41,7 @@ fn reserved_windows_target_name() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[[bin]]
name = "con"
diff --git a/tests/testsuite/cargo_test/no_keep_going/in/Cargo.toml b/tests/testsuite/cargo_test/no_keep_going/in/Cargo.toml
index c35d63273aa..2af4409b763 100644
--- a/tests/testsuite/cargo_test/no_keep_going/in/Cargo.toml
+++ b/tests/testsuite/cargo_test/no_keep_going/in/Cargo.toml
@@ -1,3 +1,4 @@
[package]
name = "foo"
version = "0.1.0"
+edition = "2015"
diff --git a/tests/testsuite/cargo_update/toolchain_pkgname/in/Cargo.toml b/tests/testsuite/cargo_update/toolchain_pkgname/in/Cargo.toml
index c844631b2e8..dd74caccc56 100644
--- a/tests/testsuite/cargo_update/toolchain_pkgname/in/Cargo.toml
+++ b/tests/testsuite/cargo_update/toolchain_pkgname/in/Cargo.toml
@@ -1,5 +1,6 @@
[package]
name = "test"
version = "0.1.0"
+edition = "2015"
[dependencies]
diff --git a/tests/testsuite/cfg.rs b/tests/testsuite/cfg.rs
index 1bbbfb85c64..79df55810d5 100644
--- a/tests/testsuite/cfg.rs
+++ b/tests/testsuite/cfg.rs
@@ -13,6 +13,7 @@ fn cfg_easy() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(unix)'.dependencies]
@@ -39,6 +40,7 @@ fn dont_include() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg({})'.dependencies]
@@ -76,6 +78,7 @@ fn works_through_the_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -119,6 +122,7 @@ fn ignore_version_from_other_platform() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg({})'.dependencies]
@@ -159,6 +163,7 @@ fn bad_target_spec() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(4)'.dependencies]
@@ -190,6 +195,7 @@ fn bad_target_spec2() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(bar =)'.dependencies]
@@ -222,6 +228,7 @@ fn multiple_match_ok() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(unix)'.dependencies]
@@ -257,6 +264,7 @@ fn any_ok() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[target."cfg(any(windows, unix))".dependencies]
@@ -281,6 +289,7 @@ fn cfg_looks_at_rustflags_for_target() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(with_b)'.dependencies]
@@ -493,6 +502,7 @@ fn exclusive_dep_kinds() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[target.'cfg(abc)'.dependencies]
bar = "1.0"
diff --git a/tests/testsuite/check.rs b/tests/testsuite/check.rs
index 5608e2ddc84..e49b939d975 100644
--- a/tests/testsuite/check.rs
+++ b/tests/testsuite/check.rs
@@ -19,6 +19,7 @@ fn check_success() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -48,6 +49,7 @@ fn check_fail() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -80,6 +82,7 @@ fn custom_derive() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -114,6 +117,7 @@ fn custom_derive() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[lib]
proc-macro = true
@@ -146,6 +150,7 @@ fn check_build() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -177,6 +182,7 @@ fn build_check() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -224,6 +230,7 @@ fn issue_3419() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -287,6 +294,7 @@ fn dylib_check_preserves_build_cache() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[lib]
@@ -324,6 +332,7 @@ fn rustc_check() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -359,6 +368,7 @@ fn rustc_check_err() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -393,6 +403,7 @@ fn check_all() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace]
@@ -820,6 +831,7 @@ fn proc_macro() {
[package]
name = "demo"
version = "0.0.1"
+ edition = "2015"
[lib]
proc-macro = true
@@ -945,6 +957,7 @@ fn rustc_workspace_wrapper_includes_path_deps() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1001,6 +1014,7 @@ fn rustc_workspace_wrapper_excludes_published_deps() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1035,10 +1049,12 @@ fn warn_manifest_package_and_project() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[project]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -1065,10 +1081,12 @@ fn git_manifest_package_and_project() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
[project]
name = "bar"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1082,6 +1100,7 @@ fn git_manifest_package_and_project() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -1115,6 +1134,7 @@ fn warn_manifest_with_project() {
[project]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -1141,6 +1161,7 @@ fn git_manifest_with_project() {
[project]
name = "bar"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1154,6 +1175,7 @@ fn git_manifest_with_project() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
@@ -1187,6 +1209,7 @@ fn check_fixable_warning() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "use std::io;")
@@ -1206,6 +1229,7 @@ fn check_fixable_test_warning() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file(
@@ -1237,6 +1261,7 @@ fn check_fixable_error_no_fix() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file(
@@ -1277,6 +1302,7 @@ fn check_fixable_warning_workspace() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("foo/src/lib.rs", "use std::io;")
@@ -1286,6 +1312,7 @@ fn check_fixable_warning_workspace() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
[dependencies]
foo = { path = "../foo" }
@@ -1423,6 +1450,7 @@ fn check_fixable_warning_for_clippy() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
// We don't want to show a warning that is `clippy`
@@ -1450,6 +1478,7 @@ fn check_unused_manifest_keys() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1507,6 +1536,7 @@ fn versionless_package() {
[package]
name = "foo"
description = "foo"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1534,6 +1564,7 @@ fn pkgid_querystring_works() {
r#"
[package]
name = "foo"
+ edition = "2015"
[dependencies]
gitdep = {{ git = "{}", branch = "master" }}
diff --git a/tests/testsuite/clean.rs b/tests/testsuite/clean.rs
index ccef728321f..aae84c0c959 100644
--- a/tests/testsuite/clean.rs
+++ b/tests/testsuite/clean.rs
@@ -50,6 +50,7 @@ fn clean_multiple_packages() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -216,6 +217,7 @@ fn clean_release() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -261,6 +263,7 @@ fn clean_doc() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -293,6 +296,7 @@ fn build_script() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -348,6 +352,7 @@ fn clean_git() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -373,6 +378,7 @@ fn registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -398,6 +404,7 @@ fn clean_verbose() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -439,6 +446,7 @@ fn clean_remove_rlib_rmeta() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -468,6 +476,7 @@ fn package_cleans_all_the_things() {
[package]
name = "foo-bar"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["{}"]
@@ -588,6 +597,7 @@ fn clean_spec_version() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar1 = {version="0.1", package="bar"}
@@ -643,6 +653,7 @@ fn clean_spec_partial_version() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar1 = {version="0.1", package="bar"}
@@ -698,6 +709,7 @@ fn clean_spec_partial_version_ambiguous() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar1 = {version="0.1", package="bar"}
@@ -757,6 +769,7 @@ fn clean_spec_reserved() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -803,6 +816,7 @@ fn clean_dry_run() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
diff --git a/tests/testsuite/collisions.rs b/tests/testsuite/collisions.rs
index 986619eb20b..e47744d7f48 100644
--- a/tests/testsuite/collisions.rs
+++ b/tests/testsuite/collisions.rs
@@ -24,6 +24,7 @@ fn collision_dylib() {
[package]
name = "a"
version = "1.0.0"
+ edition = "2015"
[lib]
crate-type = ["dylib"]
@@ -36,6 +37,7 @@ fn collision_dylib() {
[package]
name = "b"
version = "1.0.0"
+ edition = "2015"
[lib]
crate-type = ["dylib"]
@@ -128,6 +130,7 @@ fn collision_doc() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
foo2 = { path = "foo2" }
@@ -140,6 +143,7 @@ fn collision_doc() {
[package]
name = "foo2"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "foo"
@@ -178,6 +182,7 @@ fn collision_doc_multiple_versions() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -254,6 +259,7 @@ fn collision_doc_host_target_feature_split() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -328,6 +334,7 @@ fn collision_doc_profile_split() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pm = { path = "pm" }
@@ -344,6 +351,7 @@ fn collision_doc_profile_split() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[dependencies]
common = "1.0"
@@ -402,6 +410,7 @@ fn collision_doc_sources() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -457,6 +466,7 @@ fn collision_doc_target() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar2 = { version = "2.0", package="bar" }
@@ -509,6 +519,7 @@ fn collision_with_root() {
[package]
name = "abc"
version = "1.0.0"
+ edition = "2015"
[dependencies]
foo-macro = "1.0"
@@ -521,6 +532,7 @@ fn collision_with_root() {
[package]
name = "foo-macro"
version = "1.0.0"
+ edition = "2015"
[lib]
proc-macro = true
diff --git a/tests/testsuite/credential_process.rs b/tests/testsuite/credential_process.rs
index 1317f2b4146..19e08b6ef99 100644
--- a/tests/testsuite/credential_process.rs
+++ b/tests/testsuite/credential_process.rs
@@ -53,6 +53,7 @@ fn get_token_test() -> (Project, TestRegistry) {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
description = "foo"
license = "MIT"
homepage = "https://example.com/"
@@ -517,6 +518,7 @@ fn token_caching() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
description = "foo"
license = "MIT"
homepage = "https://example.com/"
@@ -596,6 +598,7 @@ fn basic_provider() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
version = "0.0.1"
diff --git a/tests/testsuite/cross_compile.rs b/tests/testsuite/cross_compile.rs
index 54edbaf3dfc..ad7aefe1595 100644
--- a/tests/testsuite/cross_compile.rs
+++ b/tests/testsuite/cross_compile.rs
@@ -18,6 +18,7 @@ fn simple_cross() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -79,6 +80,7 @@ fn simple_cross_config() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -130,6 +132,7 @@ fn simple_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -174,6 +177,7 @@ fn per_crate_target_test(
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
{}
@@ -276,6 +280,7 @@ fn workspace_with_multiple_targets() {
[package]
name = "native"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -312,6 +317,7 @@ fn workspace_with_multiple_targets() {
[package]
name = "cross"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
default-target = "{}"
@@ -425,6 +431,7 @@ fn cross_tests() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[[bin]]
name = "bar"
@@ -616,6 +623,7 @@ fn cross_with_a_build_script() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = 'build.rs'
"#,
@@ -679,6 +687,7 @@ fn build_script_needed_for_host_and_target() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = 'build.rs'
@@ -710,6 +719,7 @@ fn build_script_needed_for_host_and_target() {
[package]
name = "d1"
version = "0.0.0"
+ edition = "2015"
authors = []
build = 'build.rs'
"#,
@@ -731,6 +741,7 @@ fn build_script_needed_for_host_and_target() {
[package]
name = "d2"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -787,6 +798,7 @@ fn build_deps_for_the_right_arch() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.d2]
@@ -802,6 +814,7 @@ fn build_deps_for_the_right_arch() {
[package]
name = "d2"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -830,6 +843,7 @@ fn build_script_only_host() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -845,6 +859,7 @@ fn build_script_only_host() {
[package]
name = "d1"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -880,6 +895,7 @@ fn plugin_build_script_right_arch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -923,6 +939,7 @@ fn build_script_with_platform_specific_dependencies() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -946,6 +963,7 @@ fn build_script_with_platform_specific_dependencies() {
[package]
name = "d1"
version = "0.0.0"
+ edition = "2015"
authors = []
[target.{}.dependencies]
@@ -996,6 +1014,7 @@ fn platform_specific_dependencies_do_not_leak() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1015,6 +1034,7 @@ fn platform_specific_dependencies_do_not_leak() {
[package]
name = "d1"
version = "0.0.0"
+ edition = "2015"
authors = []
[target.{}.dependencies]
@@ -1051,6 +1071,7 @@ fn platform_specific_variables_reflected_in_build_scripts() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
@@ -1095,6 +1116,7 @@ fn platform_specific_variables_reflected_in_build_scripts() {
[package]
name = "d1"
version = "0.0.0"
+ edition = "2015"
authors = []
links = "d1"
build = "build.rs"
@@ -1111,6 +1133,7 @@ fn platform_specific_variables_reflected_in_build_scripts() {
[package]
name = "d2"
version = "0.0.0"
+ edition = "2015"
authors = []
links = "d2"
build = "build.rs"
@@ -1146,6 +1169,7 @@ fn cross_test_dylib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1182,6 +1206,7 @@ fn cross_test_dylib() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
diff --git a/tests/testsuite/cross_publish.rs b/tests/testsuite/cross_publish.rs
index 96e46800c22..676c71b54f4 100644
--- a/tests/testsuite/cross_publish.rs
+++ b/tests/testsuite/cross_publish.rs
@@ -16,6 +16,7 @@ fn simple_cross_package() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -77,6 +78,7 @@ fn publish_with_target() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
diff --git a/tests/testsuite/directory.rs b/tests/testsuite/directory.rs
index a7cf195af89..d0d4b3e55bf 100644
--- a/tests/testsuite/directory.rs
+++ b/tests/testsuite/directory.rs
@@ -91,6 +91,7 @@ fn simple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -129,6 +130,7 @@ fn simple_install() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -171,6 +173,7 @@ fn simple_install_fail() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -218,6 +221,7 @@ fn install_without_feature_dep() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -262,6 +266,7 @@ fn not_there() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -309,6 +314,7 @@ fn multiple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -341,6 +347,7 @@ fn crates_io_then_directory() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -398,6 +405,7 @@ fn crates_io_then_bad_checksum() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -457,6 +465,7 @@ fn bad_file_checksum() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -502,6 +511,7 @@ fn only_dot_files_ok() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -535,6 +545,7 @@ fn random_files_ok() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -568,6 +579,7 @@ fn git_lock_file_doesnt_change() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -629,6 +641,7 @@ fn git_override_requires_lockfile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -685,6 +698,7 @@ fn workspace_different_locations() {
[package]
name = 'foo'
version = '0.1.0'
+ edition = "2015"
[dependencies]
baz = "*"
@@ -700,6 +714,7 @@ fn workspace_different_locations() {
[package]
name = 'bar'
version = '0.1.0'
+ edition = "2015"
[dependencies]
baz = "*"
@@ -748,6 +763,7 @@ fn version_missing() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
diff --git a/tests/testsuite/doc.rs b/tests/testsuite/doc.rs
index b9fe0a72ccd..36793dfc460 100644
--- a/tests/testsuite/doc.rs
+++ b/tests/testsuite/doc.rs
@@ -17,6 +17,7 @@ fn simple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -48,6 +49,7 @@ fn doc_no_libs() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -94,6 +96,7 @@ fn doc_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -149,6 +152,7 @@ fn doc_no_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -185,6 +189,7 @@ fn doc_only_bin() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -219,6 +224,7 @@ fn doc_multiple_targets_same_name_lib() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "foo_lib"
"#,
@@ -230,6 +236,7 @@ fn doc_multiple_targets_same_name_lib() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "foo_lib"
"#,
@@ -267,6 +274,7 @@ fn doc_multiple_targets_same_name() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[[bin]]
name = "foo_lib"
path = "src/foo_lib.rs"
@@ -279,6 +287,7 @@ fn doc_multiple_targets_same_name() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "foo_lib"
"#,
@@ -323,6 +332,7 @@ fn doc_multiple_targets_same_name_bin() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("foo/src/bin/foo-cli.rs", "")
@@ -332,6 +342,7 @@ fn doc_multiple_targets_same_name_bin() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("bar/src/bin/foo-cli.rs", "")
@@ -367,6 +378,7 @@ fn doc_multiple_targets_same_name_undoced() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[[bin]]
name = "foo-cli"
"#,
@@ -378,6 +390,7 @@ fn doc_multiple_targets_same_name_undoced() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[[bin]]
name = "foo-cli"
doc = false
@@ -673,6 +686,7 @@ fn doc_dash_p() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.a]
@@ -686,6 +700,7 @@ fn doc_dash_p() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.b]
@@ -817,6 +832,7 @@ fn target_specific_not_documented() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.foo.dependencies]
@@ -840,6 +856,7 @@ fn output_not_captured() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -874,6 +891,7 @@ fn target_specific_documented() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.foo.dependencies]
@@ -915,6 +933,7 @@ fn no_document_build_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[build-dependencies]
@@ -963,6 +982,7 @@ fn doc_multiple_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -995,6 +1015,7 @@ fn features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1011,6 +1032,7 @@ fn features() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1128,6 +1150,7 @@ fn plugins_no_use_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1148,6 +1171,7 @@ fn doc_all_workspace() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -1286,6 +1310,7 @@ fn doc_all_member_dependency_same_name() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -1353,6 +1378,7 @@ fn doc_extern_map_local() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1382,6 +1408,7 @@ fn open_no_doc_crate() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1414,6 +1441,7 @@ fn doc_workspace_open_different_library_and_package_names() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "foolib"
"#,
@@ -1462,6 +1490,7 @@ fn doc_workspace_open_binary() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[[bin]]
name = "foobin"
path = "src/main.rs"
@@ -1493,6 +1522,7 @@ fn doc_workspace_open_binary_and_library() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
name = "foolib"
[[bin]]
@@ -1545,6 +1575,7 @@ fn doc_target_edition() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1574,6 +1605,7 @@ fn issue_5345() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(all(windows, target_arch = "x86"))'.dependencies]
@@ -1657,6 +1689,7 @@ fn doc_cap_lints() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1883,6 +1916,7 @@ fn doc_example_with_deps() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
[dependencies]
b = {path = "../b"}
@@ -1896,6 +1930,7 @@ fn doc_example_with_deps() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("b/src/lib.rs", "")
@@ -1919,6 +1954,7 @@ fn bin_private_items() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -1972,6 +2008,7 @@ fn bin_private_items_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -2026,6 +2063,7 @@ fn crate_versions() {
[package]
name = "foo"
version = "1.2.4"
+ edition = "2015"
authors = []
"#,
)
@@ -2058,6 +2096,7 @@ fn crate_versions_flag_is_overridden() {
[package]
name = "foo"
version = "1.2.4"
+ edition = "2015"
authors = []
"#,
)
@@ -2103,6 +2142,7 @@ fn doc_test_in_workspace() {
[package]
name = "crate-a"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -2119,6 +2159,7 @@ fn doc_test_in_workspace() {
[package]
name = "crate-b"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -2168,6 +2209,7 @@ fn doc_test_include_file() {
[package]
name = "root"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -2196,6 +2238,7 @@ fn doc_test_include_file() {
[package]
name = "child"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -2268,6 +2311,7 @@ LLVM version: 9.0
[package]
name = "foo"
version = "1.2.4"
+ edition = "2015"
authors = []
"#,
)
@@ -2351,6 +2395,7 @@ LLVM version: 9.0
[package]
name = "foo"
version = "1.2.4"
+ edition = "2015"
authors = []
"#,
)
@@ -2532,6 +2577,7 @@ fn doc_lib_false() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
doc = false
@@ -2548,6 +2594,7 @@ fn doc_lib_false() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[lib]
doc = false
@@ -2584,6 +2631,7 @@ fn doc_lib_false_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -2596,6 +2644,7 @@ fn doc_lib_false_dep() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[lib]
doc = false
diff --git a/tests/testsuite/features.rs b/tests/testsuite/features.rs
index 712b535101d..b1b6a3c52aa 100644
--- a/tests/testsuite/features.rs
+++ b/tests/testsuite/features.rs
@@ -13,6 +13,7 @@ fn invalid1() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -44,6 +45,7 @@ fn empty_feature_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -58,9 +60,9 @@ fn empty_feature_name() {
.with_stderr(
"\
[ERROR] feature name cannot be empty
- --> Cargo.toml:8:17
+ --> Cargo.toml:9:17
|
-8 | \"\" = []
+9 | \"\" = []
| ^^
|
",
@@ -78,6 +80,7 @@ fn same_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -125,6 +128,7 @@ fn invalid3() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -160,6 +164,7 @@ fn invalid4() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -204,6 +209,7 @@ fn invalid5() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies.bar]
@@ -236,6 +242,7 @@ fn invalid6() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -267,6 +274,7 @@ fn invalid7() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -299,6 +307,7 @@ fn invalid8() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -334,6 +343,7 @@ fn invalid9() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -362,6 +372,7 @@ fn invalid10() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -376,6 +387,7 @@ fn invalid10() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.baz]
@@ -410,6 +422,7 @@ fn no_transitive_dep_feature_requirement() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.derived]
@@ -432,6 +445,7 @@ fn no_transitive_dep_feature_requirement() {
[package]
name = "derived"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -445,6 +459,7 @@ fn no_transitive_dep_feature_requirement() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -481,6 +496,7 @@ fn no_feature_doesnt_build() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -537,6 +553,7 @@ fn default_feature_pulled_in() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -595,6 +612,7 @@ fn cyclic_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -619,6 +637,7 @@ fn cyclic_feature2() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -648,6 +667,7 @@ fn groups_on_groups_on_groups() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -706,6 +726,7 @@ fn many_cli_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -755,6 +776,7 @@ fn union_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -783,6 +805,7 @@ fn union_features() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -801,6 +824,7 @@ fn union_features() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -838,6 +862,7 @@ fn many_features_no_rebuilds() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies.a]
@@ -852,6 +877,7 @@ fn many_features_no_rebuilds() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -903,6 +929,7 @@ fn transitive_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -919,6 +946,7 @@ fn transitive_features() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -943,6 +971,7 @@ fn everything_in_the_lockfile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -966,6 +995,7 @@ fn everything_in_the_lockfile() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -981,6 +1011,7 @@ fn everything_in_the_lockfile() {
[package]
name = "d3"
version = "0.0.3"
+ edition = "2015"
authors = []
[features]
@@ -1018,6 +1049,7 @@ fn no_rebuild_when_frobbing_default_feature() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1032,6 +1064,7 @@ fn no_rebuild_when_frobbing_default_feature() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1045,6 +1078,7 @@ fn no_rebuild_when_frobbing_default_feature() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -1069,6 +1103,7 @@ fn unions_work_with_no_default_features() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1083,6 +1118,7 @@ fn unions_work_with_no_default_features() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1096,6 +1132,7 @@ fn unions_work_with_no_default_features() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -1120,6 +1157,7 @@ fn optional_and_dev_dep() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1152,6 +1190,7 @@ fn activating_feature_activates_dep() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1171,6 +1210,7 @@ fn activating_feature_activates_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -1247,6 +1287,7 @@ fn dep_feature_in_cmd_line() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.derived]
@@ -1266,6 +1307,7 @@ fn dep_feature_in_cmd_line() {
[package]
name = "derived"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1283,6 +1325,7 @@ fn dep_feature_in_cmd_line() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1331,6 +1374,7 @@ fn all_features_flag_enables_all_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1376,6 +1420,7 @@ fn many_cli_features_comma_delimited() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1424,6 +1469,7 @@ fn many_cli_features_comma_and_space_delimited() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1493,6 +1539,7 @@ fn only_dep_is_optional() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1522,6 +1569,7 @@ fn all_features_all_crates() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace]
@@ -1535,6 +1583,7 @@ fn all_features_all_crates() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1559,6 +1608,7 @@ fn feature_off_dylib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[lib]
crate-type = ["dylib"]
@@ -1585,6 +1635,7 @@ fn feature_off_dylib() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
[dependencies]
foo = { path = ".." }
@@ -1617,6 +1668,7 @@ fn warn_if_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1651,6 +1703,7 @@ fn no_feature_for_non_optional_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1671,6 +1724,7 @@ fn no_feature_for_non_optional_dep() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1692,6 +1746,7 @@ fn features_option_given_twice() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1720,6 +1775,7 @@ fn multi_multi_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1749,6 +1805,7 @@ fn cli_parse_ok() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1820,6 +1877,7 @@ fn all_features_virtual_ws() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[features]
default = ["f3"]
@@ -1863,6 +1921,7 @@ fn slash_optional_enables() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = {path="dep", optional=true}
@@ -1881,6 +1940,7 @@ fn slash_optional_enables() {
[package]
name = "dep"
version = "0.1.0"
+ edition = "2015"
[features]
feat = []
@@ -1995,6 +2055,7 @@ fn nonexistent_required_features() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[features]
existing = []
fancy = ["optional_dependency"]
@@ -2041,6 +2102,7 @@ fn invalid_feature_names_error() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[features]
# Invalid start character.
@@ -2055,9 +2117,9 @@ fn invalid_feature_names_error() {
.with_stderr(
"\
[ERROR] invalid character `+` in feature name: `+foo`, the first character must be a Unicode XID start character or digit (most letters or `_` or `0` to `9`)
- --> Cargo.toml:8:17
+ --> Cargo.toml:9:17
|
-8 | \"+foo\" = []
+9 | \"+foo\" = []
| ^^^^^^
|
",
@@ -2070,6 +2132,7 @@ fn invalid_feature_names_error() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[features]
# Invalid continue character.
@@ -2082,9 +2145,9 @@ fn invalid_feature_names_error() {
.with_stderr(
"\
[ERROR] invalid character `&` in feature name: `a&b`, characters must be Unicode XID characters, '-', `+`, or `.` (numbers, `+`, `-`, `_`, `.`, or most letters)
- --> Cargo.toml:8:13
+ --> Cargo.toml:9:13
|
-8 | \"a&b\" = []
+9 | \"a&b\" = []
| ^^^^^
|
",
@@ -2102,6 +2165,7 @@ fn invalid_feature_name_slash_error() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[features]
"foo/bar" = []
@@ -2115,9 +2179,9 @@ fn invalid_feature_name_slash_error() {
.with_stderr(
"\
[ERROR] invalid character `/` in feature name: `foo/bar`, feature name is not allowed to contain slashes
- --> Cargo.toml:7:17
+ --> Cargo.toml:8:17
|
-7 | \"foo/bar\" = []
+8 | \"foo/bar\" = []
| ^^^^^^^^^
|
",
@@ -2134,6 +2198,7 @@ fn default_features_conflicting_warning() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2147,6 +2212,7 @@ fn default_features_conflicting_warning() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
diff --git a/tests/testsuite/features2.rs b/tests/testsuite/features2.rs
index 3bd41ae159e..536c9aff945 100644
--- a/tests/testsuite/features2.rs
+++ b/tests/testsuite/features2.rs
@@ -54,6 +54,7 @@ fn inactivate_targets() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
common = "1.0"
@@ -134,6 +135,7 @@ fn inactive_target_optional() {
[package]
name = "dep1"
version = "0.1.0"
+ edition = "2015"
[dependencies]
common = {version="1.0", features=["f1"]}
@@ -152,6 +154,7 @@ fn inactive_target_optional() {
[package]
name = "dep2"
version = "0.1.0"
+ edition = "2015"
[dependencies]
common = "1.0"
@@ -211,6 +214,7 @@ fn itarget_proc_macro() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pm = "1.0"
@@ -819,6 +823,7 @@ fn required_features_host_dep() {
[package]
name = "bdep"
version = "0.1.0"
+ edition = "2015"
[features]
f1 = []
@@ -922,6 +927,7 @@ fn required_features_inactive_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[target.'cfg(whatever)'.dependencies]
@@ -1073,6 +1079,7 @@ fn proc_macro_ws() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[features]
feat1 = []
@@ -1085,6 +1092,7 @@ fn proc_macro_ws() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
@@ -1134,6 +1142,7 @@ fn has_dev_dep_for_test() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dev-dependencies]
dep = { path = 'dep', features = ['f1'] }
@@ -1154,6 +1163,7 @@ fn has_dev_dep_for_test() {
[package]
name = "dep"
version = "0.1.0"
+ edition = "2015"
[features]
f1 = []
@@ -1235,6 +1245,7 @@ fn build_dep_activated() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
# This should never be selected.
[target.'{}'.build-dependencies]
@@ -1270,6 +1281,7 @@ fn resolver_bad_setting() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "foo"
"#,
)
@@ -1317,6 +1329,7 @@ fn resolver_original() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "{}"
[dependencies]
@@ -1354,6 +1367,7 @@ fn resolver_not_both() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
"#,
)
@@ -1390,6 +1404,7 @@ fn resolver_ws_member() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
"#,
)
@@ -1463,6 +1478,7 @@ fn resolver_ws_root_and_member() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
"#,
)
@@ -1557,6 +1573,7 @@ fn resolver_enables_new_features() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[features]
ping = []
@@ -1623,6 +1640,7 @@ fn install_resolve_behavior() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
resolver = "2"
[target.'cfg(whatever)'.dependencies]
@@ -1657,6 +1675,7 @@ fn package_includes_resolve_behavior() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
authors = ["Zzz"]
description = "foo"
license = "MIT"
@@ -1671,6 +1690,7 @@ fn package_includes_resolve_behavior() {
let rewritten_toml = format!(
r#"{}
[package]
+edition = "2015"
name = "a"
version = "0.1.0"
authors = ["Zzz"]
@@ -1702,6 +1722,7 @@ fn tree_all() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[target.'cfg(whatever)'.dependencies]
@@ -1745,6 +1766,7 @@ fn shared_dep_same_but_dependencies() {
[package]
name = "bin1"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = { path = "../dep" }
@@ -1757,6 +1779,7 @@ fn shared_dep_same_but_dependencies() {
[package]
name = "bin2"
version = "0.1.0"
+ edition = "2015"
[build-dependencies]
dep = { path = "../dep" }
@@ -1771,6 +1794,7 @@ fn shared_dep_same_but_dependencies() {
[package]
name = "dep"
version = "0.1.0"
+ edition = "2015"
[dependencies]
subdep = { path = "../subdep" }
@@ -1786,6 +1810,7 @@ fn shared_dep_same_but_dependencies() {
[package]
name = "subdep"
version = "0.1.0"
+ edition = "2015"
[features]
feat = []
@@ -1850,6 +1875,7 @@ fn test_proc_macro() {
[package]
name = "runtime"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -1865,6 +1891,7 @@ fn test_proc_macro() {
[package]
name = "the-macro"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
test = false
@@ -1891,6 +1918,7 @@ fn test_proc_macro() {
[package]
name = "the-macro-support"
version = "0.1.0"
+ edition = "2015"
[dependencies]
shared = { path = "../shared" }
"#,
@@ -1907,6 +1935,7 @@ fn test_proc_macro() {
[package]
name = "shared"
version = "0.1.0"
+ edition = "2015"
[features]
b = []
"#,
@@ -1935,6 +1964,7 @@ fn doc_optional() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[target.'cfg(whatever)'.dependencies]
@@ -2019,6 +2049,7 @@ fn minimal_download() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
normal = "1.0"
@@ -2244,6 +2275,7 @@ fn pm_with_int_shared() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
@@ -2272,6 +2304,7 @@ fn pm_with_int_shared() {
[package]
name = "shared"
version = "0.1.0"
+ edition = "2015"
[features]
norm-feat = []
@@ -2340,6 +2373,7 @@ fn doc_proc_macro() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -2353,6 +2387,7 @@ fn doc_proc_macro() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
@@ -2397,6 +2432,7 @@ fn edition_2021_default_2() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
common = "1.0"
diff --git a/tests/testsuite/features_namespaced.rs b/tests/testsuite/features_namespaced.rs
index a8e600bd283..a1dd25b3163 100644
--- a/tests/testsuite/features_namespaced.rs
+++ b/tests/testsuite/features_namespaced.rs
@@ -19,6 +19,7 @@ fn dependency_with_crate_syntax() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {version="1.0", features=["feat"]}
@@ -53,6 +54,7 @@ fn namespaced_invalid_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -85,6 +87,7 @@ fn namespaced_invalid_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
bar = ["dep:baz"]
@@ -116,6 +119,7 @@ fn namespaced_non_optional_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
bar = ["dep:baz"]
@@ -154,6 +158,7 @@ fn namespaced_implicit_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
bar = ["baz"]
@@ -198,6 +203,7 @@ fn namespaced_shadowed_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
baz = []
@@ -234,6 +240,7 @@ fn namespaced_shadowed_non_optional() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
baz = []
@@ -258,6 +265,7 @@ fn namespaced_implicit_non_optional() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
bar = ["baz"]
@@ -292,6 +300,7 @@ fn namespaced_same_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[features]
baz = ["dep:baz"]
@@ -350,6 +359,7 @@ fn no_implicit_feature() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
regex = { version = "1.0", optional = true }
@@ -421,6 +431,7 @@ fn crate_syntax_bad_name() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version="1.0", optional=true }
@@ -437,9 +448,9 @@ fn crate_syntax_bad_name() {
.with_stderr(
"\
[ERROR] feature named `dep:bar` is not allowed to start with `dep:`
- --> Cargo.toml:10:17
+ --> Cargo.toml:11:17
|
-10 | \"dep:bar\" = []
+11 | \"dep:bar\" = []
| ^^^^^^^^^
|
",
@@ -461,6 +472,7 @@ fn crate_syntax_in_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", features = ["dep:baz"] }
@@ -494,6 +506,7 @@ fn crate_syntax_cli() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional=true }
@@ -533,6 +546,7 @@ fn crate_required_features() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional=true }
@@ -568,6 +582,7 @@ fn json_exposed() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional=true }
@@ -644,6 +659,7 @@ fn crate_feature_with_explicit() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version="1.0", optional = true }
@@ -692,6 +708,7 @@ fn optional_explicit_without_crate() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional = true }
@@ -733,6 +750,7 @@ fn tree() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", features = ["feat1"], optional=true }
@@ -821,6 +839,7 @@ fn tree_no_implicit() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional=true }
@@ -874,6 +893,7 @@ fn publish_no_implicit() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
description = "foo"
license = "MIT"
homepage = "https://example.com/"
@@ -956,6 +976,7 @@ You may press ctrl-c [..]
&format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.1.0"
description = "foo"
@@ -992,6 +1013,7 @@ fn publish() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
description = "foo"
license = "MIT"
homepage = "https://example.com/"
@@ -1072,6 +1094,7 @@ You may press ctrl-c [..]
&format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.1.0"
description = "foo"
@@ -1108,6 +1131,7 @@ fn namespaced_feature_together() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -1138,6 +1162,7 @@ Caused by:
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {version = "1.0", optional = true }
@@ -1166,6 +1191,7 @@ Caused by:
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {version = "1.0", optional = true }
@@ -1194,6 +1220,7 @@ Caused by:
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {version = "1.0", optional = true }
@@ -1230,6 +1257,7 @@ fn dep_feature_when_hidden() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar", optional = true }
@@ -1246,6 +1274,7 @@ fn dep_feature_when_hidden() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[features]
bar_feat = []
diff --git a/tests/testsuite/fetch.rs b/tests/testsuite/fetch.rs
index 9be5f79d08b..14975c81e0b 100644
--- a/tests/testsuite/fetch.rs
+++ b/tests/testsuite/fetch.rs
@@ -40,6 +40,7 @@ fn fetch_all_platform_dependencies_when_no_target_is_given() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.{host}.dependencies]
@@ -87,6 +88,7 @@ fn fetch_platform_specific_dependencies() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.{host}.dependencies]
@@ -124,6 +126,7 @@ fn fetch_warning() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
misspelled = "wut"
"#,
)
diff --git a/tests/testsuite/fix.rs b/tests/testsuite/fix.rs
index 9b36c57ecde..d935f196be7 100644
--- a/tests/testsuite/fix.rs
+++ b/tests/testsuite/fix.rs
@@ -62,6 +62,7 @@ fn fix_path_deps() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = 'bar' }
@@ -117,6 +118,7 @@ fn do_not_fix_non_relevant_deps() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = '../bar' }
@@ -546,6 +548,7 @@ fn fix_features() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[features]
bar = []
@@ -1074,6 +1077,7 @@ fn doesnt_rebuild_dependencies() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = 'bar' }
@@ -1119,6 +1123,7 @@ fn does_not_crash_with_rustc_wrapper() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1142,6 +1147,7 @@ fn uses_workspace_wrapper_and_primary_wrapper_override() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -1162,6 +1168,7 @@ fn only_warn_for_relevant_crates() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = { path = 'a' }
@@ -1174,6 +1181,7 @@ fn only_warn_for_relevant_crates() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -1209,6 +1217,7 @@ fn fix_to_broken_code() {
[package]
name = 'foo'
version = '0.1.0'
+ edition = "2015"
[workspace]
"#,
)
@@ -1256,6 +1265,7 @@ fn fix_to_broken_code() {
[package]
name = 'bar'
version = '0.1.0'
+ edition = "2015"
[workspace]
"#,
)
@@ -1534,6 +1544,7 @@ fn abnormal_exit() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pm = {path="pm"}
@@ -1722,6 +1733,7 @@ fn fix_in_dependency() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
diff --git a/tests/testsuite/freshness.rs b/tests/testsuite/freshness.rs
index 51c84b8aef7..c4addb33515 100644
--- a/tests/testsuite/freshness.rs
+++ b/tests/testsuite/freshness.rs
@@ -109,6 +109,7 @@ fn rebuild_sub_package_then_while_package() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[dependencies.a]
path = "a"
@@ -124,6 +125,7 @@ fn rebuild_sub_package_then_while_package() {
name = "a"
authors = []
version = "0.0.1"
+ edition = "2015"
[dependencies.b]
path = "../b"
"#,
@@ -191,6 +193,7 @@ fn changing_lib_features_caches_targets() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[features]
foo = []
@@ -240,6 +243,7 @@ fn changing_profiles_caches_targets() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[profile.dev]
panic = "abort"
@@ -302,6 +306,7 @@ fn changing_bin_paths_common_target_features_caches_targets() {
[package]
name = "dep_crate"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -327,6 +332,7 @@ fn changing_bin_paths_common_target_features_caches_targets() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -350,6 +356,7 @@ fn changing_bin_paths_common_target_features_caches_targets() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -462,6 +469,7 @@ fn changing_bin_features_caches_targets() {
name = "foo"
authors = []
version = "0.0.1"
+ edition = "2015"
[features]
foo = []
@@ -573,6 +581,7 @@ fn no_rebuild_transitive_target_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -589,6 +598,7 @@ fn no_rebuild_transitive_target_deps() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.foo.dependencies]
@@ -602,6 +612,7 @@ fn no_rebuild_transitive_target_deps() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -637,6 +648,7 @@ fn rerun_if_changed_in_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -650,6 +662,7 @@ fn rerun_if_changed_in_dep() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -679,6 +692,7 @@ fn same_build_dir_cached_packages() {
[package]
name = "a1"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
b = { path = "../b" }
@@ -691,6 +705,7 @@ fn same_build_dir_cached_packages() {
[package]
name = "a2"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
b = { path = "../b" }
@@ -703,6 +718,7 @@ fn same_build_dir_cached_packages() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
c = { path = "../c" }
@@ -715,6 +731,7 @@ fn same_build_dir_cached_packages() {
[package]
name = "c"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
d = { path = "../d" }
@@ -765,6 +782,7 @@ fn no_rebuild_if_build_artifacts_move_backwards_in_time() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -795,6 +813,7 @@ fn rebuild_if_build_artifacts_move_forward_in_time() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -833,6 +852,7 @@ fn rebuild_if_environment_changes() {
name = "foo"
description = "old desc"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -864,6 +884,7 @@ fn rebuild_if_environment_changes() {
name = "foo"
description = "new desc"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
);
@@ -891,6 +912,7 @@ fn no_rebuild_when_rename_dir() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace]
@@ -938,6 +960,7 @@ fn unused_optional_dep() {
name = "p"
authors = []
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -952,6 +975,7 @@ fn unused_optional_dep() {
[package]
name = "bar"
version = "0.1.1"
+ edition = "2015"
authors = []
[dev-dependencies]
@@ -965,6 +989,7 @@ fn unused_optional_dep() {
[package]
name = "baz"
version = "0.1.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -991,6 +1016,7 @@ fn path_dev_dep_registry_updates() {
name = "p"
authors = []
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -1003,6 +1029,7 @@ fn path_dev_dep_registry_updates() {
[package]
name = "bar"
version = "0.1.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1019,6 +1046,7 @@ fn path_dev_dep_registry_updates() {
[package]
name = "baz"
version = "0.1.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1053,6 +1081,7 @@ fn change_panic_mode() {
[package]
name = "baz"
version = "0.1.1"
+ edition = "2015"
authors = []
[lib]
@@ -1078,6 +1107,7 @@ fn dont_rebuild_based_on_plugins() {
[package]
name = "bar"
version = "0.1.1"
+ edition = "2015"
[workspace]
members = ['baz']
@@ -1093,6 +1123,7 @@ fn dont_rebuild_based_on_plugins() {
[package]
name = "proc-macro-thing"
version = "0.1.1"
+ edition = "2015"
[lib]
proc-macro = true
@@ -1108,6 +1139,7 @@ fn dont_rebuild_based_on_plugins() {
[package]
name = "baz"
version = "0.1.1"
+ edition = "2015"
[dependencies]
qux = { path = '../qux' }
@@ -1135,6 +1167,7 @@ fn reuse_workspace_lib() {
[package]
name = "bar"
version = "0.1.1"
+ edition = "2015"
[workspace]
@@ -1169,6 +1202,7 @@ fn reuse_shared_build_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
shared = {path = "shared"}
@@ -1186,6 +1220,7 @@ fn reuse_shared_build_dep() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
[build-dependencies]
shared = { path = "../shared" }
@@ -1261,6 +1296,7 @@ fn update_dependency_mtime_does_not_rebuild() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -1336,6 +1372,7 @@ fn fingerprint_cleaner_does_not_rebuild() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -1398,6 +1435,7 @@ fn reuse_panic_build_dep_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[build-dependencies]
bar = { path = "bar" }
@@ -1443,6 +1481,7 @@ fn reuse_panic_pm() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -1461,6 +1500,7 @@ fn reuse_panic_pm() {
[package]
name = "somepm"
version = "0.0.1"
+ edition = "2015"
[lib]
proc-macro = true
@@ -1504,6 +1544,7 @@ fn bust_patched_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
registry2 = "0.1.0"
@@ -1575,6 +1616,7 @@ fn rebuild_on_mid_build_file_modification() {
[package]
name = "root"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1597,6 +1639,7 @@ fn rebuild_on_mid_build_file_modification() {
[package]
name = "proc_macro_dep"
version = "0.1.0"
+ edition = "2015"
authors = []
[lib]
@@ -1835,6 +1878,7 @@ fn simulated_docker_deps_stay_cached() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pathdep = { path = "pathdep" }
@@ -1953,6 +1997,7 @@ fn metadata_change_invalidates() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -2026,6 +2071,7 @@ fn rename_with_path_deps() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2039,6 +2085,7 @@ fn rename_with_path_deps() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2052,6 +2099,7 @@ fn rename_with_path_deps() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
"#,
)
@@ -2083,6 +2131,7 @@ fn move_target_directory_with_path_deps() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2095,6 +2144,7 @@ fn move_target_directory_with_path_deps() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
"#,
)
@@ -2535,6 +2585,7 @@ fn lld_is_fresh() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["dylib"]
@@ -2558,6 +2609,7 @@ fn env_in_code_causes_rebuild() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -2642,6 +2694,7 @@ fn env_build_script_no_rebuild() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file(
@@ -2758,6 +2811,7 @@ fn verify_source_before_recompile() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
diff --git a/tests/testsuite/git.rs b/tests/testsuite/git.rs
index 3905288e6d5..08665f069ad 100644
--- a/tests/testsuite/git.rs
+++ b/tests/testsuite/git.rs
@@ -40,6 +40,7 @@ fn cargo_compile_simple_git_dep() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -108,6 +109,7 @@ fn cargo_compile_git_dep_branch() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -184,6 +186,7 @@ fn cargo_compile_git_dep_tag() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -256,6 +259,7 @@ fn cargo_compile_git_dep_pull_request() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = "{}", rev = "refs/pull/330/head" }}
@@ -297,6 +301,7 @@ fn cargo_compile_with_nested_paths() {
name = "dep1"
version = "0.5.0"
+ edition = "2015"
authors = ["carlhuda@example.com"]
[dependencies.dep2]
@@ -339,6 +344,7 @@ fn cargo_compile_with_nested_paths() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -386,6 +392,7 @@ fn cargo_compile_with_malformed_nested_paths() {
[package]
name = "dep3"
version = "0.5.0"
+ edition = "2015"
[dependencies]
subdep1 = { path = "../require-extra-build-step" }
"#,
@@ -402,6 +409,7 @@ fn cargo_compile_with_malformed_nested_paths() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -462,6 +470,7 @@ fn cargo_compile_with_meta_package() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -513,6 +522,7 @@ fn cargo_compile_with_short_ssh_git() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep]
@@ -564,6 +574,7 @@ fn recompilation() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -663,6 +674,7 @@ fn update_with_shared_deps() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -688,6 +700,7 @@ fn update_with_shared_deps() {
[package]
name = "dep1"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -705,6 +718,7 @@ fn update_with_shared_deps() {
[package]
name = "dep2"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -830,6 +844,7 @@ fn dep_with_submodule() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -869,6 +884,7 @@ fn dep_with_relative_submodule() {
[package]
name = "base"
version = "0.5.0"
+ edition = "2015"
[dependencies]
deployment.path = "deployment"
@@ -901,6 +917,7 @@ fn dep_with_relative_submodule() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies.base]
git = '{}'
@@ -963,6 +980,7 @@ fn dep_with_bad_submodule() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -1036,6 +1054,7 @@ fn dep_with_skipped_submodule() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1071,6 +1090,7 @@ fn ambiguous_published_deps() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
publish = true
"#
),
@@ -1083,6 +1103,7 @@ fn ambiguous_published_deps() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
publish = true
"#
),
@@ -1099,6 +1120,7 @@ fn ambiguous_published_deps() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -1145,6 +1167,7 @@ fn two_deps_only_update_one() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -1216,6 +1239,7 @@ fn stale_cached_version() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -1311,6 +1335,7 @@ fn dep_with_changed_submodule() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
git = '{}'
@@ -1418,6 +1443,7 @@ fn dev_deps_with_testing() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dev-dependencies.bar]
@@ -1478,6 +1504,7 @@ fn git_build_cmd_freshness() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1535,6 +1562,7 @@ fn git_name_not_always_needed() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dev-dependencies.bar]
@@ -1578,6 +1606,7 @@ fn git_repo_changing_no_rebuild() {
[package]
name = "p1"
version = "0.5.0"
+ edition = "2015"
authors = []
build = 'build.rs'
[dependencies.bar]
@@ -1618,6 +1647,7 @@ fn git_repo_changing_no_rebuild() {
[package]
name = "p2"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.bar]
git = '{}'
@@ -1655,6 +1685,7 @@ fn git_dep_build_cmd() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -1675,6 +1706,7 @@ fn git_dep_build_cmd() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
@@ -1730,6 +1762,7 @@ fn fetch_downloads() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.bar]
git = '{}'
@@ -1772,6 +1805,7 @@ fn fetch_downloads_with_git2_first_then_with_gitoxide_and_vice_versa() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.bar]
git = '{url}'
@@ -1810,6 +1844,7 @@ fn warnings_in_git_dep() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.bar]
git = '{}'
@@ -1853,6 +1888,7 @@ fn update_ambiguous() {
[package]
name = "baz"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -1872,6 +1908,7 @@ fn update_ambiguous() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.bar]
git = '{}'
@@ -1919,6 +1956,7 @@ fn update_one_dep_in_repo_with_many_deps() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.bar]
git = '{}'
@@ -1954,6 +1992,7 @@ fn switch_deps_does_not_update_transitive() {
[package]
name = "dep"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.transitive]
@@ -1973,6 +2012,7 @@ fn switch_deps_does_not_update_transitive() {
[package]
name = "dep"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.transitive]
@@ -1992,6 +2032,7 @@ fn switch_deps_does_not_update_transitive() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.dep]
git = '{}'
@@ -2026,6 +2067,7 @@ fn switch_deps_does_not_update_transitive() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.dep]
git = '{}'
@@ -2057,6 +2099,7 @@ fn update_one_source_updates_all_packages_in_that_git_source() {
[package]
name = "dep"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
@@ -2076,6 +2119,7 @@ fn update_one_source_updates_all_packages_in_that_git_source() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.dep]
git = '{}'
@@ -2126,6 +2170,7 @@ fn switch_sources() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.b]
path = "b"
@@ -2139,6 +2184,7 @@ fn switch_sources() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
git = '{}'
@@ -2168,6 +2214,7 @@ fn switch_sources() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.a]
git = '{}'
@@ -2199,6 +2246,7 @@ fn dont_require_submodules_are_checked_out() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2237,6 +2285,7 @@ fn doctest_same_name() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
a = {{ git = '{}' }}
@@ -2255,6 +2304,7 @@ fn doctest_same_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2294,6 +2344,7 @@ fn lints_are_suppressed() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2337,6 +2388,7 @@ fn denied_lints_are_allowed() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2375,6 +2427,7 @@ fn add_a_git_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2400,6 +2453,7 @@ fn add_a_git_dep() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2441,6 +2495,7 @@ fn two_at_rev_instead_of_tag() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2467,6 +2522,7 @@ fn include_overrides_gitignore() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
include = ["src/lib.rs", "ignored.txt", "Cargo.toml"]
"#,
)
@@ -2520,6 +2576,7 @@ fn invalid_git_dependency_manifest() {
name = "dep1"
version = "0.5.0"
+ edition = "2015"
authors = ["carlhuda@example.com"]
categories = ["algorithms"]
categories = ["algorithms"]
@@ -2548,6 +2605,7 @@ fn invalid_git_dependency_manifest() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.dep1]
@@ -2572,9 +2630,9 @@ fn invalid_git_dependency_manifest() {
"\
[UPDATING] git repository `{}`
[ERROR] duplicate key `categories` in table `package`
- --> [..]/Cargo.toml:8:21
+ --> [..]/Cargo.toml:9:21
|
-8 | categories = [\"algorithms\"]
+9 | categories = [\"algorithms\"]
| ^
|
[ERROR] failed to get `dep1` as a dependency of package `foo v0.5.0 ([..])`
@@ -2641,6 +2699,7 @@ fn failed_submodule_checkout() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2687,6 +2746,7 @@ fn use_the_cli() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2741,6 +2801,7 @@ fn templatedir_doesnt_cause_problems() {
[package]
name = "fo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2849,6 +2910,7 @@ fn git_fetch_cli_env_clean() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{}' }}
"#,
@@ -3018,6 +3080,7 @@ fn default_not_master() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{}' }}
"#,
@@ -3058,6 +3121,7 @@ fn historical_lockfile_works() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{}', branch = 'master' }}
@@ -3115,6 +3179,7 @@ fn historical_lockfile_works_with_vendor() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{}', branch = 'master' }}
@@ -3172,6 +3237,7 @@ fn two_dep_forms() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{}', branch = 'master' }}
a = {{ path = 'a' }}
@@ -3187,6 +3253,7 @@ fn two_dep_forms() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{}' }}
"#,
@@ -3235,6 +3302,7 @@ fn metadata_master_consistency() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ git = "{}", branch = "master" }}
@@ -3393,6 +3461,7 @@ fn metadata_master_consistency() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ git = "{}" }}
@@ -3556,6 +3625,7 @@ fn _corrupted_checkout(with_cli: bool) {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep1 = {{ git = "{}" }}
@@ -3601,6 +3671,7 @@ fn cleans_temp_pack_files() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -3658,6 +3729,7 @@ fn different_user_relative_submodules() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies.dep1]
git = '{}'
diff --git a/tests/testsuite/git_auth.rs b/tests/testsuite/git_auth.rs
index 2436b858b20..d11fa75be41 100644
--- a/tests/testsuite/git_auth.rs
+++ b/tests/testsuite/git_auth.rs
@@ -114,6 +114,7 @@ fn http_auth_offered() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -186,6 +187,7 @@ fn https_something_happens() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -248,6 +250,7 @@ fn ssh_something_happens() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -306,6 +309,7 @@ fn net_err_suggests_fetch_with_cli() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -383,6 +387,7 @@ fn instead_of_url_printed() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
diff --git a/tests/testsuite/global_cache_tracker.rs b/tests/testsuite/global_cache_tracker.rs
index f2bd297525f..3c5c47438a1 100644
--- a/tests/testsuite/global_cache_tracker.rs
+++ b/tests/testsuite/global_cache_tracker.rs
@@ -35,6 +35,7 @@ fn basic_foo_bar_project() -> Project {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -253,6 +254,7 @@ fn auto_gc_defaults() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
old = "1.0"
@@ -280,6 +282,7 @@ fn auto_gc_defaults() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
new = "1.0"
@@ -327,6 +330,7 @@ fn auto_gc_config() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
old = "1.0"
@@ -354,6 +358,7 @@ fn auto_gc_config() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
new = "1.0"
@@ -434,6 +439,7 @@ fn auto_gc_index() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
);
p.cargo("check -Zgc")
@@ -474,6 +480,7 @@ fn auto_gc_git() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ git = '{}' }}
@@ -547,6 +554,7 @@ fn auto_gc_various_commands() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -632,6 +640,7 @@ fn updates_last_use_various_commands() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -680,6 +689,7 @@ fn both_git_and_http_index_cleans() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
from_git = "1.0"
@@ -805,6 +815,7 @@ fn tracks_sizes() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep1 = "1.0"
@@ -1143,6 +1154,7 @@ fn package_cache_lock_during_build() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -1174,6 +1186,7 @@ fn package_cache_lock_during_build() {
[package]
name = "foo2"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -1323,6 +1336,7 @@ fn clean_syncs_missing_files() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -1441,6 +1455,7 @@ fn clean_max_git_age() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
git_a = {{ git = '{}' }}
@@ -1635,6 +1650,7 @@ fn clean_max_git_size() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ git = '{}' }}
@@ -1819,6 +1835,7 @@ fn handles_missing_git_db() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ git = '{}' }}
@@ -1885,6 +1902,7 @@ fn compatible_with_older_cargo() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
old = "1.0"
@@ -1915,6 +1933,7 @@ fn compatible_with_older_cargo() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
new = "1.0"
@@ -1941,6 +1960,7 @@ fn compatible_with_older_cargo() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
new = "1.0"
diff --git a/tests/testsuite/inheritable_workspace_fields.rs b/tests/testsuite/inheritable_workspace_fields.rs
index 901f433c82e..d6539984852 100644
--- a/tests/testsuite/inheritable_workspace_fields.rs
+++ b/tests/testsuite/inheritable_workspace_fields.rs
@@ -43,6 +43,7 @@ fn permit_additional_workspace_fields() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -85,6 +86,7 @@ fn deny_optional_dependencies() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -259,6 +261,7 @@ fn inherit_own_dependencies() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -388,6 +391,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
&format!(
r#"{}
[package]
+edition = "2015"
name = "bar"
version = "0.2.0"
authors = []
@@ -417,6 +421,7 @@ fn inherit_own_detailed_dependencies() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -516,6 +521,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
&format!(
r#"{}
[package]
+edition = "2015"
name = "bar"
version = "0.2.0"
authors = []
@@ -543,6 +549,7 @@ fn inherit_from_own_undefined_field() {
[package]
name = "foo"
version = "1.2.5"
+ edition = "2015"
authors = ["rustaceans"]
description.workspace = true
@@ -589,6 +596,7 @@ fn inherited_dependencies_union_features() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep = { workspace = true, features = ["dancy"] }
@@ -813,6 +821,7 @@ fn inherit_dependencies() {
workspace = ".."
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep.workspace = true
@@ -932,6 +941,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
&format!(
r#"{}
[package]
+edition = "2015"
name = "bar"
version = "0.2.0"
authors = []
@@ -970,6 +980,7 @@ fn inherit_target_dependencies() {
workspace = ".."
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[target.'cfg(unix)'.dependencies]
dep.workspace = true
@@ -1020,6 +1031,7 @@ fn inherit_dependency_override_optional() {
workspace = ".."
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep = { workspace = true, optional = true }
@@ -1057,6 +1069,7 @@ fn inherit_dependency_features() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep = { workspace = true, features = ["fancy"] }
@@ -1131,6 +1144,7 @@ fn inherit_detailed_dependencies() {
workspace = ".."
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
detailed.workspace = true
@@ -1173,6 +1187,7 @@ fn inherit_path_dependencies() {
workspace = ".."
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep.workspace = true
@@ -1219,6 +1234,7 @@ fn error_workspace_false() {
name = "bar"
workspace = ".."
version = "1.2.3"
+ edition = "2015"
authors = ["rustaceans"]
description = { workspace = false }
"#,
@@ -1232,9 +1248,9 @@ fn error_workspace_false() {
.with_stderr(
"\
[ERROR] `workspace` cannot be false
- --> Cargo.toml:7:41
+ --> Cargo.toml:8:41
|
-7 | description = { workspace = false }
+8 | description = { workspace = false }
| ^^^^^
|
",
@@ -1255,6 +1271,7 @@ fn error_workspace_dependency_looked_for_workspace_itself() {
[package]
name = "bar"
version = "1.2.3"
+ edition = "2015"
[dependencies]
dep.workspace = true
@@ -1309,6 +1326,7 @@ fn error_malformed_workspace_root() {
name = "bar"
workspace = ".."
version = "1.2.3"
+ edition = "2015"
authors = ["rustaceans"]
"#,
)
@@ -1346,6 +1364,7 @@ fn error_no_root_workspace() {
name = "bar"
workspace = ".."
version = "1.2.3"
+ edition = "2015"
authors = ["rustaceans"]
description.workspace = true
"#,
@@ -1391,6 +1410,7 @@ fn error_inherit_unspecified_dependency() {
name = "bar"
workspace = ".."
version = "1.2.3"
+ edition = "2015"
authors = ["rustaceans"]
[dependencies]
foo.workspace = true
@@ -1433,6 +1453,7 @@ fn warn_inherit_def_feat_true_member_def_feat_false() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep = { workspace = true, default-features = false }
@@ -1481,6 +1502,7 @@ fn warn_inherit_simple_member_def_feat_false() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep = { workspace = true, default-features = false }
@@ -1529,6 +1551,7 @@ fn inherit_def_feat_false_member_def_feat_true() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
dep = { workspace = true, default-features = true }
@@ -1575,6 +1598,7 @@ fn cannot_inherit_in_patch() {
[package]
name = "foo"
version = "0.2.0"
+ edition = "2015"
[patch.crates-io]
bar.workspace = true
@@ -1621,6 +1645,7 @@ fn warn_inherit_unused_manifest_key_dep() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1661,6 +1686,7 @@ fn warn_unused_workspace_package_field() {
[package]
name = "foo"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
diff --git a/tests/testsuite/lints.rs b/tests/testsuite/lints.rs
index dc85462ca54..29df7e78f5b 100644
--- a/tests/testsuite/lints.rs
+++ b/tests/testsuite/lints.rs
@@ -12,6 +12,7 @@ fn dependency_warning_ignored() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -29,6 +30,7 @@ fn dependency_warning_ignored() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints.rust]
@@ -59,6 +61,7 @@ fn malformed_on_stable() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
@@ -90,6 +93,7 @@ fn fail_on_invalid_tool() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace.lints.super-awesome-linter]
@@ -121,6 +125,7 @@ fn invalid_type_in_lint_value() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[workspace.lints.rust]
rust-2018-idioms = -1
@@ -134,9 +139,9 @@ fn invalid_type_in_lint_value() {
.with_stderr(
"\
[ERROR] invalid type: integer `-1`, expected a string or map
- --> Cargo.toml:7:36
+ --> Cargo.toml:8:36
|
-7 | rust-2018-idioms = -1
+8 | rust-2018-idioms = -1
| ^^
|
",
@@ -153,6 +158,7 @@ fn warn_on_unused_key() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[workspace.lints.rust]
rust-2018-idioms = { level = "allow", unused = true }
@@ -184,6 +190,7 @@ fn fail_on_tool_injection() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace.lints.rust]
@@ -215,6 +222,7 @@ fn fail_on_redundant_tool() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace.lints.rust]
@@ -246,6 +254,7 @@ fn fail_on_conflicting_tool() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace.lints.rust]
@@ -277,6 +286,7 @@ fn package_lint_deny() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints.rust]
@@ -312,6 +322,7 @@ fn workspace_cant_be_false() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints]
@@ -336,9 +347,9 @@ pub fn foo(num: i32) -> u32 {
.with_stderr_contains(
"\
error: `workspace` cannot be false
- --> Cargo.toml:8:29
+ --> Cargo.toml:9:29
|
-8 | workspace = false
+9 | workspace = false
| ^^^^^
|
",
@@ -355,6 +366,7 @@ fn workspace_lint_deny() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints]
@@ -393,6 +405,7 @@ fn workspace_and_package_lints() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints]
@@ -436,6 +449,7 @@ fn attribute_has_precedence() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints.rust]
@@ -468,6 +482,7 @@ fn rustflags_has_precedence() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints.rust]
@@ -501,6 +516,7 @@ fn profile_rustflags_has_precedence() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[lints.rust]
"unsafe_code" = "deny"
@@ -534,6 +550,7 @@ fn build_rustflags_has_precedence() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[lints.rust]
"unsafe_code" = "deny"
@@ -651,6 +668,7 @@ fn rustdoc_lint() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints.rustdoc]
@@ -686,6 +704,7 @@ fn doctest_respects_lints() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lints.rust]
diff --git a/tests/testsuite/local_registry.rs b/tests/testsuite/local_registry.rs
index 3c08f4662b1..31f96933270 100644
--- a/tests/testsuite/local_registry.rs
+++ b/tests/testsuite/local_registry.rs
@@ -36,6 +36,7 @@ fn simple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -76,6 +77,7 @@ fn not_found() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -112,6 +114,7 @@ fn depend_on_yanked() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -155,6 +158,7 @@ fn multiple_versions() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -207,6 +211,7 @@ fn multiple_names() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -261,6 +266,7 @@ fn interdependent() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -311,6 +317,7 @@ fn path_dep_rewritten() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -329,6 +336,7 @@ fn path_dep_rewritten() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -373,6 +381,7 @@ fn invalid_dir_bad() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -432,6 +441,7 @@ fn different_directory_replacing_the_registry_is_bad() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -501,6 +511,7 @@ fn crates_io_registry_url_is_optional() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
diff --git a/tests/testsuite/lockfile_compat.rs b/tests/testsuite/lockfile_compat.rs
index d47c284a5b7..18924127482 100644
--- a/tests/testsuite/lockfile_compat.rs
+++ b/tests/testsuite/lockfile_compat.rs
@@ -55,6 +55,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -101,6 +102,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -128,6 +130,7 @@ fn totally_wild_checksums_works() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -194,6 +197,7 @@ fn wrong_checksum_is_an_error() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -257,6 +261,7 @@ fn unlisted_checksum_is_bad_if_we_calculate() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -323,6 +328,7 @@ fn listed_checksum_bad_if_we_cannot_compute() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -389,6 +395,7 @@ fn current_lockfile_format() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -449,6 +456,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -496,6 +504,7 @@ fn locked_correct_error() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -548,6 +557,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -607,6 +617,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -622,6 +633,7 @@ dependencies = [
[package]
name = "a"
version = "0.2.0"
+ edition = "2015"
"#,
)
.file("a/src/lib.rs", "")
@@ -673,6 +685,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -700,6 +713,7 @@ fn lock_from_the_future() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -752,6 +766,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -776,6 +791,7 @@ fn same_name_version_different_sources() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -820,6 +836,7 @@ source = "git+{url}#{sha}"
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
foo = "0.1.0"
@@ -848,6 +865,7 @@ fn bad_data_in_lockfile_error_meg() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[dependencies]
bar = "*"
@@ -899,6 +917,7 @@ fn next_version_is_always_unstable() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
),
)
@@ -944,6 +963,7 @@ fn v4_cannot_be_created_from_scratch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
),
)
@@ -1020,6 +1040,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{url}', {ref_kind} = '{git_ref}' }}
@@ -1112,6 +1133,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep1 = {{ git = '{url}', {ref_kind} = '{git_ref}' }}
@@ -1206,6 +1228,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -1256,6 +1279,7 @@ dependencies = [
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
rust-version = "{msrv}"
[dependencies]
diff --git a/tests/testsuite/lto.rs b/tests/testsuite/lto.rs
index 3cacfcbcca3..45fd5df90a7 100644
--- a/tests/testsuite/lto.rs
+++ b/tests/testsuite/lto.rs
@@ -14,6 +14,7 @@ fn with_deps() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[dependencies]
bar = "*"
@@ -41,6 +42,7 @@ fn shared_deps() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[dependencies]
bar = "*"
@@ -71,6 +73,7 @@ fn build_dep_not_ltod() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[build-dependencies]
bar = "*"
@@ -155,6 +158,7 @@ fn complicated() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[lib]
crate-type = ['cdylib', 'staticlib']
@@ -232,6 +236,7 @@ fn off_in_manifest_works() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[dependencies]
bar = "*"
@@ -275,6 +280,7 @@ fn between_builds() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
[profile.release]
lto = true
@@ -312,6 +318,7 @@ fn test_all() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[profile.release]
lto = true
@@ -335,6 +342,7 @@ fn test_all_and_bench() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[profile.release]
lto = true
@@ -377,6 +385,7 @@ fn project_with_dep(crate_types: &str) -> Project {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[workspace]
@@ -404,6 +413,7 @@ fn project_with_dep(crate_types: &str) -> Project {
[package]
name = "bar"
version = "0.0.0"
+ edition = "2015"
[dependencies]
registry = "*"
@@ -751,6 +761,7 @@ fn dylib_rlib_bin() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["dylib", "rlib"]
@@ -787,6 +798,7 @@ fn fresh_swapping_commands() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
diff --git a/tests/testsuite/metabuild.rs b/tests/testsuite/metabuild.rs
index cf91057cdf5..f480d577097 100644
--- a/tests/testsuite/metabuild.rs
+++ b/tests/testsuite/metabuild.rs
@@ -16,6 +16,7 @@ fn metabuild_gated() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = ["mb"]
"#,
)
@@ -52,6 +53,7 @@ fn basic_project() -> Project {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = ["mb", "mb-other"]
[build-dependencies]
@@ -71,6 +73,7 @@ fn basic_project() -> Project {
[package]
name = "mb-other"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file(
@@ -100,6 +103,7 @@ fn metabuild_error_both() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = "mb"
[build-dependencies]
@@ -139,6 +143,7 @@ fn metabuild_missing_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = "mb"
"#,
)
@@ -168,6 +173,7 @@ fn metabuild_optional_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = "mb"
[build-dependencies]
@@ -204,6 +210,7 @@ fn metabuild_lib_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = "mb"
[build-dependencies]
@@ -217,6 +224,7 @@ fn metabuild_lib_name() {
[package]
name = "mb"
version = "0.0.1"
+ edition = "2015"
[lib]
name = "other"
"#,
@@ -252,6 +260,7 @@ fn metabuild_fresh() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
metabuild = "mb"
[build-dependencies]
@@ -294,6 +303,7 @@ fn metabuild_links() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
links = "cat"
metabuild = "mb"
@@ -331,6 +341,7 @@ fn metabuild_override() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
links = "cat"
metabuild = "mb"
@@ -378,6 +389,7 @@ fn metabuild_workspace() {
[package]
name = "member1"
version = "0.0.1"
+ edition = "2015"
metabuild = ["mb1", "mb2"]
[build-dependencies]
@@ -393,6 +405,7 @@ fn metabuild_workspace() {
[package]
name = "member2"
version = "0.0.1"
+ edition = "2015"
metabuild = ["mb1"]
[build-dependencies]
@@ -574,6 +587,7 @@ fn metabuild_two_versions() {
[package]
name = "member1"
version = "0.0.1"
+ edition = "2015"
metabuild = ["mb"]
[build-dependencies]
@@ -588,6 +602,7 @@ fn metabuild_two_versions() {
[package]
name = "member2"
version = "0.0.1"
+ edition = "2015"
metabuild = ["mb"]
[build-dependencies]
@@ -602,6 +617,7 @@ fn metabuild_two_versions() {
[package]
name = "mb"
version = "0.0.1"
+ edition = "2015"
"#)
.file(
"src/lib.rs",
@@ -614,6 +630,7 @@ fn metabuild_two_versions() {
[package]
name = "mb"
version = "0.0.2"
+ edition = "2015"
"#)
.file(
"src/lib.rs",
@@ -650,6 +667,7 @@ fn metabuild_external_dependency() {
[package]
name = "dep"
version = "1.0.0"
+ edition = "2015"
metabuild = ["mb"]
[build-dependencies]
@@ -667,6 +685,7 @@ fn metabuild_external_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep = "1.0"
"#,
diff --git a/tests/testsuite/offline.rs b/tests/testsuite/offline.rs
index 3818f7f3384..a488abdbc80 100644
--- a/tests/testsuite/offline.rs
+++ b/tests/testsuite/offline.rs
@@ -19,6 +19,7 @@ fn offline_unused_target_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
used_dep = "1.0"
[target.'cfg(unused)'.dependencies]
@@ -47,6 +48,7 @@ fn offline_missing_optional() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
opt_dep = { version = "1.0", optional = true }
"#,
@@ -82,6 +84,7 @@ fn cargo_compile_path_with_offline() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -111,6 +114,7 @@ fn cargo_compile_with_downloaded_dependency_with_offline() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
present_dep = "1.2.3"
@@ -128,6 +132,7 @@ fn cargo_compile_with_downloaded_dependency_with_offline() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
present_dep = "1.2.3"
@@ -158,6 +163,7 @@ fn cargo_compile_offline_not_try_update() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
not_cached_dep = "1.2.5"
@@ -211,6 +217,7 @@ fn compile_offline_without_maxvers_cached() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
present_dep = "=1.2.3"
@@ -227,6 +234,7 @@ fn compile_offline_without_maxvers_cached() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
present_dep = "1.2"
@@ -264,6 +272,7 @@ fn cargo_compile_forbird_git_httpsrepo_offline() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["chabapok@example.com"]
[dependencies.dep1]
@@ -305,6 +314,7 @@ fn compile_offline_while_transitive_dep_not_cached() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -343,6 +353,7 @@ fn update_offline_not_cached() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -419,6 +430,7 @@ fn compile_offline_with_cached_git_dep(shallow: bool) {
[package]
name = "cache_git_dep"
version = "0.5.0"
+ edition = "2015"
[dependencies.dep1]
git = '{}'
@@ -450,6 +462,7 @@ fn compile_offline_with_cached_git_dep(shallow: bool) {
[package]
name = "cache_git_dep"
version = "0.5.0"
+ edition = "2015"
[dependencies.dep1]
git = '{}'
@@ -469,6 +482,7 @@ fn compile_offline_with_cached_git_dep(shallow: bool) {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies.dep1]
git = '{}'
@@ -507,6 +521,7 @@ fn compile_offline_with_cached_git_dep(shallow: bool) {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
[dependencies.dep1]
git = '{}'
@@ -541,6 +556,7 @@ fn offline_resolve_optional_fail() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = { version = "1.0", optional = true }
@@ -558,6 +574,7 @@ fn offline_resolve_optional_fail() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = { version = "2.0", optional = true }
@@ -591,6 +608,7 @@ fn offline_with_all_patched() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = "1.0"
@@ -628,6 +646,7 @@ fn update_offline_cached() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
present_dep = "={}"
@@ -646,6 +665,7 @@ fn update_offline_cached() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
present_dep = "1.2"
diff --git a/tests/testsuite/package.rs b/tests/testsuite/package.rs
index 3f275c2be30..fc14ef50ce2 100644
--- a/tests/testsuite/package.rs
+++ b/tests/testsuite/package.rs
@@ -21,6 +21,7 @@ fn simple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
license = "MIT"
@@ -103,6 +104,7 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
"#,
@@ -130,6 +132,7 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -275,6 +278,7 @@ fn vcs_file_collision() {
name = "foo"
description = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
documentation = "foo"
@@ -314,6 +318,7 @@ fn orig_file_collision() {
name = "foo"
description = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
documentation = "foo"
@@ -351,6 +356,7 @@ fn path_dependency_no_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -390,6 +396,7 @@ fn git_dependency_no_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -426,6 +433,7 @@ fn exclude() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = [
"*.txt",
@@ -549,6 +557,7 @@ fn include() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
include = ["foo.txt", "**/*.rs", "Cargo.toml", ".dotfile"]
@@ -602,6 +611,7 @@ fn package_git_submodule() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = ["foo@example.com"]
license = "MIT"
description = "foo"
@@ -705,6 +715,7 @@ fn ignore_nested() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -850,6 +861,7 @@ fn broken_symlink() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = 'foo'
@@ -901,6 +913,7 @@ fn broken_but_excluded_symlink() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = 'foo'
@@ -1058,6 +1071,7 @@ fn do_not_package_if_repository_is_dirty() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
license = "MIT"
description = "foo"
documentation = "foo"
@@ -1075,6 +1089,7 @@ fn do_not_package_if_repository_is_dirty() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
license = "MIT"
description = "foo"
documentation = "foo"
@@ -1109,6 +1124,7 @@ fn dirty_ignored() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
description = "foo"
license = "foo"
documentation = "foo"
@@ -1167,6 +1183,7 @@ fn generated_manifest() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
license = "MIT"
@@ -1195,6 +1212,7 @@ fn generated_manifest() {
let rewritten_toml = format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.0.1"
authors = []
@@ -1239,6 +1257,7 @@ fn ignore_workspace_specifier() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
@@ -1255,6 +1274,7 @@ fn ignore_workspace_specifier() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -1268,6 +1288,7 @@ fn ignore_workspace_specifier() {
let rewritten_toml = format!(
r#"{}
[package]
+edition = "2015"
name = "bar"
version = "0.1.0"
authors = []
@@ -1293,6 +1314,7 @@ fn package_two_kinds_of_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1475,6 +1497,7 @@ fn package_with_select_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1504,6 +1527,7 @@ fn package_with_all_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1533,6 +1557,7 @@ fn package_no_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1565,6 +1590,7 @@ fn include_cargo_toml_implicit() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
include = ["src/lib.rs"]
"#,
)
@@ -1584,6 +1610,7 @@ fn include_exclude_test(include: &str, exclude: &str, files: &[&str], expected:
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1807,6 +1834,7 @@ fn empty_readme_path() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
readme = ""
license = "MIT"
description = "foo"
@@ -1840,6 +1868,7 @@ fn invalid_readme_path() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
readme = "DOES-NOT-EXIST"
license = "MIT"
description = "foo"
@@ -1873,6 +1902,7 @@ fn readme_or_license_file_is_dir() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
readme = "./src"
license-file = "./src"
description = "foo"
@@ -1909,6 +1939,7 @@ fn empty_license_file_path() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
license-file = ""
description = "foo"
homepage = "foo"
@@ -1942,6 +1973,7 @@ fn invalid_license_file_path() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
license-file = "does-not-exist"
description = "foo"
homepage = "foo"
@@ -1973,6 +2005,7 @@ fn license_file_implicit_include() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
license-file = "subdir/LICENSE"
description = "foo"
homepage = "foo"
@@ -2034,6 +2067,7 @@ fn relative_license_included() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
license-file = "../LICENSE"
description = "foo"
homepage = "foo"
@@ -2091,6 +2125,7 @@ fn relative_license_include_collision() {
[package]
name = "foo"
version = "1.0.0"
+ edition = "2015"
license-file = "../LICENSE"
description = "foo"
homepage = "foo"
@@ -2148,6 +2183,7 @@ fn package_restricted_windows() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
license = "MIT"
description = "foo"
homepage = "foo"
@@ -2248,6 +2284,7 @@ fn reserved_windows_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2299,6 +2336,7 @@ fn list_with_path_and_lock() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
license = "MIT"
description = "foo"
homepage = "foo"
@@ -2382,6 +2420,7 @@ fn long_file_names() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
license = "MIT"
description = "foo"
homepage = "foo"
@@ -2417,6 +2456,7 @@ fn reproducible_output() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
license = "MIT"
@@ -2452,6 +2492,7 @@ fn package_with_resolver_and_metadata() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
resolver = '2'
@@ -2508,6 +2549,7 @@ fn in_workspace() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2523,6 +2565,7 @@ fn in_workspace() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "bar"
@@ -2574,6 +2617,7 @@ fn workspace_noconflict_readme() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
repository = "https://github.com/bar/bar"
authors = []
license = "MIT"
@@ -2616,6 +2660,7 @@ fn workspace_conflict_readme() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
repository = "https://github.com/bar/bar"
authors = []
license = "MIT"
@@ -2748,6 +2793,7 @@ fn basic_filesizes() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
license = "MIT"
@@ -2758,6 +2804,7 @@ fn basic_filesizes() {
let cargo_toml_contents = format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.0.1"
authors = []
@@ -2833,6 +2880,7 @@ fn larger_filesizes() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2851,6 +2899,7 @@ fn larger_filesizes() {
let cargo_toml_contents = format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.0.1"
authors = []
@@ -2938,6 +2987,7 @@ fn symlink_filesizes() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2956,6 +3006,7 @@ fn symlink_filesizes() {
let cargo_toml_contents = format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.0.1"
authors = []
@@ -3057,6 +3108,7 @@ fn normalize_case() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
license = "MIT"
@@ -3119,6 +3171,7 @@ fn mixed_case() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
exclude = ["*.txt"]
license = "MIT"
@@ -3187,6 +3240,7 @@ fn versionless_package() {
[package]
name = "foo"
description = "foo"
+ edition = "2015"
"#,
)
.file("src/main.rs", r#"fn main() { println!("hello"); }"#)
@@ -3291,6 +3345,7 @@ fn init_and_add_inner_target(p: ProjectBuilder) -> ProjectBuilder {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -3314,6 +3369,7 @@ fn build_script_outside_pkg_root() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
license = "MIT"
description = "foo"
authors = []
diff --git a/tests/testsuite/package_features.rs b/tests/testsuite/package_features.rs
index 15f726be5bc..b192aea5f48 100644
--- a/tests/testsuite/package_features.rs
+++ b/tests/testsuite/package_features.rs
@@ -23,6 +23,7 @@ fn virtual_no_default_features() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep1 = {version = "1.0", optional = true}
@@ -38,6 +39,7 @@ fn virtual_no_default_features() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[features]
default = ["f1"]
@@ -96,6 +98,7 @@ fn virtual_typo_member_feature() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[features]
@@ -129,6 +132,7 @@ fn virtual_features() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[features]
f1 = []
@@ -173,6 +177,7 @@ fn virtual_with_specific() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[features]
f1 = []
@@ -194,6 +199,7 @@ fn virtual_with_specific() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[features]
f2 = []
@@ -234,6 +240,7 @@ fn other_member_from_current() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path="bar", features=["f3"] }
@@ -249,6 +256,7 @@ fn other_member_from_current() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[features]
f1 = []
@@ -316,6 +324,7 @@ fn feature_default_resolver() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[features]
test = []
@@ -366,6 +375,7 @@ fn virtual_member_slash() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = {path="../b", optional=true}
@@ -395,6 +405,7 @@ fn virtual_member_slash() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[features]
bfeat = []
@@ -454,6 +465,7 @@ fn non_member() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -511,6 +523,7 @@ fn resolver1_member_features() {
[package]
name = "member1"
version = "0.1.0"
+ edition = "2015"
[features]
m1-feature = []
@@ -557,6 +570,7 @@ fn non_member_feature() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "{}"
[dependencies]
diff --git a/tests/testsuite/patch.rs b/tests/testsuite/patch.rs
index a7128876a1c..e4b0d6ff0f4 100644
--- a/tests/testsuite/patch.rs
+++ b/tests/testsuite/patch.rs
@@ -24,6 +24,7 @@ fn replace() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -77,6 +78,7 @@ fn from_config() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -118,6 +120,7 @@ fn from_config_relative() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -159,6 +162,7 @@ fn from_config_precedence() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -203,6 +207,7 @@ fn nonexistent() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -248,6 +253,7 @@ fn patch_git() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -297,6 +303,7 @@ fn patch_to_git() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -339,6 +346,7 @@ fn unused() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -406,6 +414,7 @@ fn unused_with_mismatch_source_being_patched() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -459,6 +468,7 @@ fn prefer_patch_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -508,6 +518,7 @@ fn unused_from_config() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -584,6 +595,7 @@ fn unused_git() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -641,6 +653,7 @@ fn add_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -672,6 +685,7 @@ fn add_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -705,6 +719,7 @@ fn add_patch_from_config() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -761,6 +776,7 @@ fn add_ignored_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -792,6 +808,7 @@ fn add_ignored_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -848,6 +865,7 @@ fn add_patch_with_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -896,6 +914,7 @@ fn add_patch_with_setting_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -958,6 +977,7 @@ fn no_warn_ws_patch() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[dependencies]
c = "0.1.0"
"#,
@@ -988,6 +1008,7 @@ fn new_minor() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1025,6 +1046,7 @@ fn transitive_new_minor() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1041,6 +1063,7 @@ fn transitive_new_minor() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1076,6 +1099,7 @@ fn new_major() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1113,6 +1137,7 @@ fn new_major() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1144,6 +1169,7 @@ fn transitive_new_major() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1160,6 +1186,7 @@ fn transitive_new_major() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1201,6 +1228,7 @@ fn shared_by_transitive() {
[package]
name = "foo"
version = " 0.1.0"
+ edition = "2015"
[dependencies]
bar = {{ path = "bar" }}
@@ -1219,6 +1247,7 @@ fn shared_by_transitive() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
baz = "0.1.1"
@@ -1253,6 +1282,7 @@ fn remove_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1281,6 +1311,7 @@ fn remove_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1314,6 +1345,7 @@ fn non_crates_io() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[patch.some-other-source]
@@ -1352,6 +1384,7 @@ fn replace_with_crates_io() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[patch.crates-io]
@@ -1401,6 +1434,7 @@ fn patch_in_virtual() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1433,6 +1467,7 @@ fn patch_depends_on_another_patch() {
name = "foo"
authors = []
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -1452,6 +1487,7 @@ fn patch_depends_on_another_patch() {
[package]
name = "baz"
version = "0.1.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1487,6 +1523,7 @@ fn replace_prerelease() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1503,6 +1540,7 @@ fn replace_prerelease() {
[package]
name = "baz"
version = "1.1.0-pre.1"
+ edition = "2015"
authors = []
[workspace]
"#,
@@ -1524,6 +1562,7 @@ fn patch_older() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = 'bar' }
@@ -1540,6 +1579,7 @@ fn patch_older() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1553,6 +1593,7 @@ fn patch_older() {
[package]
name = "baz"
version = "1.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -1594,6 +1635,7 @@ fn cycle() {
[package]
name = "a"
version = "1.0.0"
+ edition = "2015"
[dependencies]
b = "1.0"
@@ -1606,6 +1648,7 @@ fn cycle() {
[package]
name = "b"
version = "1.0.0"
+ edition = "2015"
[dependencies]
a = "1.0"
@@ -1639,6 +1682,7 @@ fn multipatch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
a1 = { version = "1", package = "a" }
@@ -1656,6 +1700,7 @@ fn multipatch() {
[package]
name = "a"
version = "1.0.0"
+ edition = "2015"
"#,
)
.file("a1/src/lib.rs", "pub fn f1() {}")
@@ -1665,6 +1710,7 @@ fn multipatch() {
[package]
name = "a"
version = "2.0.0"
+ edition = "2015"
"#,
)
.file("a2/src/lib.rs", "pub fn f2() {}")
@@ -1690,6 +1736,7 @@ fn patch_same_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1"
[patch.crates-io]
@@ -1706,6 +1753,7 @@ fn patch_same_version() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("bar/src/lib.rs", "")
@@ -1739,6 +1787,7 @@ fn two_semver_compatible() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1"
[patch.crates-io]
@@ -1755,6 +1804,7 @@ fn two_semver_compatible() {
[package]
name = "bar"
version = "0.1.2"
+ edition = "2015"
"#,
)
.file("bar/src/lib.rs", "pub fn foo() {}")
@@ -1793,6 +1843,7 @@ fn multipatch_select_big() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "*"
[patch.crates-io]
@@ -1809,6 +1860,7 @@ fn multipatch_select_big() {
[package]
name = "bar"
version = "0.2.0"
+ edition = "2015"
"#,
)
.file("bar/src/lib.rs", "pub fn foo() {}")
@@ -1845,6 +1897,7 @@ fn canonicalize_a_bunch() {
[package]
name = "intermediate"
version = "0.1.0"
+ edition = "2015"
[dependencies]
# Note the lack of trailing slash
@@ -1869,6 +1922,7 @@ fn canonicalize_a_bunch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
# Note the trailing slashes
@@ -1910,6 +1964,7 @@ fn update_unused_new_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "0.1.5"
@@ -2004,6 +2059,7 @@ fn too_many_matches() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2046,6 +2102,7 @@ fn no_matches() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2085,6 +2142,7 @@ fn mismatched_version() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1.1"
@@ -2129,6 +2187,7 @@ fn patch_walks_backwards() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2181,6 +2240,7 @@ fn patch_walks_backwards_restricted() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2240,6 +2300,7 @@ fn patched_dep_new_version() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2255,6 +2316,7 @@ fn patched_dep_new_version() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
baz = "0.1"
@@ -2290,6 +2352,7 @@ fn patched_dep_new_version() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
baz = "0.1.1"
@@ -2327,6 +2390,7 @@ fn patch_update_doesnt_update_other_sources() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2394,6 +2458,7 @@ fn can_update_with_alt_reg() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2442,6 +2507,7 @@ fn can_update_with_alt_reg() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -2489,6 +2555,7 @@ fn perform_old_git_patch(shallow: bool) {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -2573,6 +2640,7 @@ fn patch_eq_conflict_panic() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "=0.1.0"
@@ -2623,6 +2691,7 @@ fn mismatched_version2() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -2639,6 +2708,7 @@ fn mismatched_version2() {
[package]
name = "qux"
version = "0.1.0-beta.1"
+ edition = "2015"
"#,
)
.file("qux/src/lib.rs", "")
@@ -2674,6 +2744,7 @@ fn mismatched_version_with_prerelease() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
prerelease-deps = "0.1.0"
@@ -2716,6 +2787,7 @@ fn from_config_empty() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2758,6 +2830,7 @@ fn from_manifest_empty() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
diff --git a/tests/testsuite/path.rs b/tests/testsuite/path.rs
index 26bd0723a3d..6add1cfc06d 100644
--- a/tests/testsuite/path.rs
+++ b/tests/testsuite/path.rs
@@ -19,6 +19,7 @@ fn cargo_compile_with_nested_deps_shorthand() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -35,6 +36,7 @@ fn cargo_compile_with_nested_deps_shorthand() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.baz]
@@ -118,6 +120,7 @@ fn cargo_compile_with_root_dev_deps() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dev-dependencies.bar]
@@ -160,6 +163,7 @@ fn cargo_compile_with_root_dev_deps_with_testing() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dev-dependencies.bar]
@@ -208,6 +212,7 @@ fn cargo_compile_with_transitive_dev_deps() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -224,6 +229,7 @@ fn cargo_compile_with_transitive_dev_deps() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dev-dependencies.baz]
@@ -269,6 +275,7 @@ fn no_rebuild_dependency() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -317,6 +324,7 @@ fn deep_dependencies_trigger_rebuild() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -331,6 +339,7 @@ fn deep_dependencies_trigger_rebuild() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -404,6 +413,7 @@ fn no_rebuild_two_deps() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -420,6 +430,7 @@ fn no_rebuild_two_deps() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[lib]
@@ -456,6 +467,7 @@ fn nested_deps_recompile() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -501,6 +513,7 @@ fn error_message_for_missing_manifest() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -558,6 +571,7 @@ fn override_relative() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -594,6 +608,7 @@ fn override_self() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -620,6 +635,7 @@ fn override_path_dep() {
[package]
name = "p1"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies.p2]
@@ -648,6 +664,7 @@ fn override_path_dep() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.p2]
@@ -673,6 +690,7 @@ fn path_dep_build_cmd() {
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
[dependencies.bar]
@@ -689,6 +707,7 @@ fn path_dep_build_cmd() {
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["wycats@example.com"]
build = "build.rs"
@@ -747,6 +766,7 @@ fn dev_deps_no_rebuild_lib() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dev-dependencies.bar]
@@ -797,6 +817,7 @@ fn custom_target_no_rebuild() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
a = { path = "a" }
@@ -813,6 +834,7 @@ fn custom_target_no_rebuild() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
a = { path = "../a" }
@@ -855,6 +877,7 @@ fn override_and_depend() {
[package]
name = "a1"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
a2 = { path = "../a2" }
@@ -869,6 +892,7 @@ fn override_and_depend() {
[package]
name = "b"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
a1 = { path = "../a/a1" }
@@ -930,6 +954,7 @@ fn invalid_path_dep_in_workspace_with_lockfile() {
[package]
name = "top"
version = "0.5.0"
+ edition = "2015"
authors = []
[workspace]
@@ -945,6 +970,7 @@ fn invalid_path_dep_in_workspace_with_lockfile() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -964,6 +990,7 @@ fn invalid_path_dep_in_workspace_with_lockfile() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -996,6 +1023,7 @@ fn workspace_produces_rlib() {
[package]
name = "top"
version = "0.5.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1025,6 +1053,7 @@ fn deep_path_error() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = {path="a"}
"#,
@@ -1036,6 +1065,7 @@ fn deep_path_error() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = {path="../b"}
"#,
@@ -1047,6 +1077,7 @@ fn deep_path_error() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[dependencies]
c = {path="../c"}
"#,
@@ -1087,6 +1118,7 @@ fn catch_tricky_cycle() {
[package]
name = "message"
version = "0.1.0"
+ edition = "2015"
[dev-dependencies]
test = { path = "test" }
@@ -1099,6 +1131,7 @@ fn catch_tricky_cycle() {
[package]
name = "tangle"
version = "0.1.0"
+ edition = "2015"
[dependencies]
message = { path = ".." }
@@ -1112,6 +1145,7 @@ fn catch_tricky_cycle() {
[package]
name = "snapshot"
version = "0.1.0"
+ edition = "2015"
[dependencies]
ledger = { path = "../ledger" }
@@ -1124,6 +1158,7 @@ fn catch_tricky_cycle() {
[package]
name = "ledger"
version = "0.1.0"
+ edition = "2015"
[dependencies]
tangle = { path = "../tangle" }
@@ -1136,6 +1171,7 @@ fn catch_tricky_cycle() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
[dependencies]
snapshot = { path = "../snapshot" }
diff --git a/tests/testsuite/paths.rs b/tests/testsuite/paths.rs
index 59755a4b0b1..b932a69bef2 100644
--- a/tests/testsuite/paths.rs
+++ b/tests/testsuite/paths.rs
@@ -15,6 +15,7 @@ fn broken_path_override_warns() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -28,6 +29,7 @@ fn broken_path_override_warns() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -41,6 +43,7 @@ fn broken_path_override_warns() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -132,6 +135,7 @@ fn paths_ok_with_optional() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -145,6 +149,7 @@ fn paths_ok_with_optional() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -158,6 +163,7 @@ fn paths_ok_with_optional() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
diff --git a/tests/testsuite/proc_macro.rs b/tests/testsuite/proc_macro.rs
index 530d4716475..f54c5eca58d 100644
--- a/tests/testsuite/proc_macro.rs
+++ b/tests/testsuite/proc_macro.rs
@@ -11,6 +11,7 @@ fn probe_cfg_before_crate_type_discovery() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[target.'cfg(not(stage300))'.dependencies.noop]
@@ -38,6 +39,7 @@ fn probe_cfg_before_crate_type_discovery() {
[package]
name = "noop"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -70,6 +72,7 @@ fn noop() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.noop]
@@ -97,6 +100,7 @@ fn noop() {
[package]
name = "noop"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -130,6 +134,7 @@ fn impl_and_derive() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.transmogrify]
@@ -165,6 +170,7 @@ fn impl_and_derive() {
[package]
name = "transmogrify"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -211,6 +217,7 @@ fn proc_macro_doctest() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[lib]
proc-macro = true
@@ -258,6 +265,7 @@ fn proc_macro_crate_type() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
pm = { path = "pm" }
"#,
@@ -289,6 +297,7 @@ fn proc_macro_crate_type() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["proc-macro"]
"#,
@@ -322,6 +331,7 @@ fn proc_macro_crate_type_warning() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["proc-macro"]
"#,
@@ -344,6 +354,7 @@ fn proc_macro_conflicting_warning() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = false
proc_macro = true
@@ -369,6 +380,7 @@ fn proc_macro_crate_type_warning_plugin() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["proc-macro"]
plugin = true
@@ -399,6 +411,7 @@ fn proc_macro_crate_type_multiple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[lib]
crate-type = ["proc-macro", "rlib"]
"#,
@@ -466,6 +479,7 @@ fn proc_macro_built_once() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[build-dependencies]
the-macro = { path = '../the-macro' }
@@ -479,6 +493,7 @@ fn proc_macro_built_once() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
[dependencies]
the-macro = { path = '../the-macro', features = ['a'] }
@@ -491,6 +506,7 @@ fn proc_macro_built_once() {
[package]
name = "the-macro"
version = "0.1.0"
+ edition = "2015"
[lib]
proc_macro = true
diff --git a/tests/testsuite/profile_config.rs b/tests/testsuite/profile_config.rs
index 4d671eda597..f3c04ee4cc9 100644
--- a/tests/testsuite/profile_config.rs
+++ b/tests/testsuite/profile_config.rs
@@ -15,6 +15,7 @@ fn rustflags_works_with_zflag() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -203,6 +204,7 @@ fn profile_config_override_spec_multiple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -288,6 +290,7 @@ fn profile_config_override_precedence() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = {path = "bar"}
@@ -470,6 +473,7 @@ fn named_env_profile() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -494,6 +498,7 @@ fn test_with_dev_profile() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
somedep = "1.0"
diff --git a/tests/testsuite/profile_custom.rs b/tests/testsuite/profile_custom.rs
index aea41fdc23a..4e06f1ef8ec 100644
--- a/tests/testsuite/profile_custom.rs
+++ b/tests/testsuite/profile_custom.rs
@@ -12,6 +12,7 @@ fn inherits_on_release() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.release]
@@ -40,6 +41,7 @@ fn missing_inherits() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.release-lto]
@@ -69,6 +71,7 @@ fn invalid_profile_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.'.release-lto']
@@ -84,9 +87,9 @@ fn invalid_profile_name() {
.with_stderr(
"\
[ERROR] invalid character `.` in profile name: `.release-lto`, allowed characters are letters, numbers, underscore, and hyphen
- --> Cargo.toml:7:26
+ --> Cargo.toml:8:26
|
-7 | [profile.'.release-lto']
+8 | [profile.'.release-lto']
| ^^^^^^^^^^^^^^
|
",
@@ -107,6 +110,7 @@ fn invalid_dir_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.'release-lto']
@@ -139,6 +143,7 @@ fn dir_name_disabled() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.release-lto]
inherits = "release"
@@ -172,6 +177,7 @@ fn invalid_inherits() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.'release-lto']
@@ -200,6 +206,7 @@ fn non_existent_inherits() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.release-lto]
@@ -229,6 +236,7 @@ fn self_inherits() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.release-lto]
@@ -258,6 +266,7 @@ fn inherits_loop() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.release-lto]
@@ -291,6 +300,7 @@ fn overrides_with_custom() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -361,6 +371,7 @@ fn conflicting_usage() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
"#,
)
@@ -475,6 +486,7 @@ fn clean_custom_dirname() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.other]
@@ -560,6 +572,7 @@ fn unknown_profile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/lib.rs", "")
@@ -585,6 +598,7 @@ fn reserved_profile_names() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.doc]
opt-level = 1
@@ -619,6 +633,7 @@ See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configur
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.{}]
opt-level = 1
@@ -635,9 +650,9 @@ See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configur
[ERROR] profile name `{name}` is reserved
Please choose a different name.
See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configuring profiles.
- --> Cargo.toml:6:30
+ --> Cargo.toml:7:30
|
-6 | [profile.{name}]
+7 | [profile.{name}]
| {highlight}
|
"
@@ -651,6 +666,7 @@ See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configur
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[profile.debug]
@@ -666,9 +682,9 @@ See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configur
[ERROR] profile name `debug` is reserved
To configure the default development profile, use the name `dev` as in [profile.dev]
See https://doc.rust-lang.org/cargo/reference/profiles.html for more on configuring profiles.
- --> Cargo.toml:7:25
+ --> Cargo.toml:8:25
|
-7 | [profile.debug]
+8 | [profile.debug]
| ^^^^^
|
",
@@ -686,6 +702,7 @@ fn legacy_commands_support_custom() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.super-dev]
codegen-units = 3
@@ -719,6 +736,7 @@ fn legacy_rustc() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.dev]
codegen-units = 3
diff --git a/tests/testsuite/profile_overrides.rs b/tests/testsuite/profile_overrides.rs
index 5319b04794c..3519c98fbca 100644
--- a/tests/testsuite/profile_overrides.rs
+++ b/tests/testsuite/profile_overrides.rs
@@ -12,6 +12,7 @@ fn profile_override_basic() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -49,6 +50,7 @@ fn profile_override_warnings() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = {path = "bar"}
@@ -110,6 +112,7 @@ fn profile_override_bad_settings() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = {{path = "bar"}}
@@ -162,6 +165,7 @@ fn profile_override_hierarchy() {
[package]
name = "m1"
version = "0.0.1"
+ edition = "2015"
[dependencies]
m2 = { path = "../m2" }
@@ -177,6 +181,7 @@ fn profile_override_hierarchy() {
[package]
name = "m2"
version = "0.0.1"
+ edition = "2015"
[dependencies]
m3 = { path = "../m3" }
@@ -241,6 +246,7 @@ fn profile_override_spec_multiple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -276,6 +282,7 @@ fn profile_override_spec_with_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -303,6 +310,7 @@ fn profile_override_spec_with_partial_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -344,6 +352,7 @@ fn profile_override_spec() {
[package]
name = "m1"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep = { path = "../../dep1" }
@@ -357,6 +366,7 @@ fn profile_override_spec() {
[package]
name = "m2"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep = {path = "../../dep2" }
@@ -410,6 +420,7 @@ fn override_proc_macro() {
[package]
name = "pm"
version = "0.1.0"
+ edition = "2015"
[lib]
proc-macro = true
diff --git a/tests/testsuite/profile_targets.rs b/tests/testsuite/profile_targets.rs
index 6d3556df894..c77ffeadf28 100644
--- a/tests/testsuite/profile_targets.rs
+++ b/tests/testsuite/profile_targets.rs
@@ -14,6 +14,7 @@ fn all_target_project() -> Project {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -65,6 +66,7 @@ fn all_target_project() -> Project {
[package]
name = "bdep"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "../bar" }
diff --git a/tests/testsuite/profiles.rs b/tests/testsuite/profiles.rs
index 941dc7e56b0..3a9630eb2b7 100644
--- a/tests/testsuite/profiles.rs
+++ b/tests/testsuite/profiles.rs
@@ -14,6 +14,7 @@ fn profile_overrides() {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -52,6 +53,7 @@ fn opt_level_override_0() {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -85,6 +87,7 @@ fn debug_override_1() {
[package]
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -119,6 +122,7 @@ fn check_opt_level_override(profile_level: &str, rustc_level: &str) {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.dev]
@@ -171,6 +175,7 @@ fn top_level_overrides_deps() {
name = "test"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.release]
@@ -189,6 +194,7 @@ fn top_level_overrides_deps() {
name = "foo"
version = "0.0.0"
+ edition = "2015"
authors = []
[profile.release]
@@ -243,6 +249,7 @@ fn profile_in_non_root_manifest_triggers_a_warning() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -259,6 +266,7 @@ fn profile_in_non_root_manifest_triggers_a_warning() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
@@ -304,6 +312,7 @@ fn profile_in_virtual_manifest_works() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -331,6 +340,7 @@ fn profile_lto_string_bool_dev() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[profile.dev]
lto = "true"
@@ -362,6 +372,7 @@ fn profile_panic_test_bench() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[profile.test]
panic = "abort"
@@ -392,6 +403,7 @@ fn profile_doc_deprecated() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[profile.doc]
opt-level = 0
@@ -417,6 +429,7 @@ fn panic_unwind_does_not_build_twice() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.dev]
panic = "unwind"
@@ -455,6 +468,7 @@ fn debug_0_report() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.dev]
debug = 0
@@ -484,6 +498,7 @@ fn thin_lto_works() {
[package]
name = "top"
version = "0.5.0"
+ edition = "2015"
authors = []
[profile.release]
@@ -513,6 +528,7 @@ fn strip_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.release]
strip = 'symbols'
@@ -541,6 +557,7 @@ fn strip_passes_unknown_option_to_rustc() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.release]
strip = 'unknown'
@@ -570,6 +587,7 @@ fn strip_accepts_true_to_strip_symbols() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.release]
strip = true
@@ -598,6 +616,7 @@ fn strip_accepts_false_to_disable_strip() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.release]
strip = false
@@ -620,6 +639,7 @@ fn strip_debuginfo_in_release() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -639,6 +659,7 @@ fn strip_debuginfo_without_debug() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[profile.dev]
debug = 0
@@ -661,6 +682,7 @@ fn do_not_strip_debuginfo_with_requested_debug() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -676,6 +698,7 @@ fn do_not_strip_debuginfo_with_requested_debug() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("bar/src/lib.rs", "")
@@ -700,6 +723,7 @@ fn rustflags_works() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -728,6 +752,7 @@ fn rustflags_works_with_env() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -758,6 +783,7 @@ fn rustflags_requires_cargo_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
"#,
)
.file("src/main.rs", "fn main() {}")
@@ -790,6 +816,7 @@ Caused by:
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -831,6 +858,7 @@ fn debug_options_valid() {
name = "foo"
authors = []
version = "0.0.0"
+ edition = "2015"
[profile.dev]
debug = "{option}"
diff --git a/tests/testsuite/pub_priv.rs b/tests/testsuite/pub_priv.rs
index 5ecf2ee89a2..c761595bbf6 100644
--- a/tests/testsuite/pub_priv.rs
+++ b/tests/testsuite/pub_priv.rs
@@ -18,6 +18,7 @@ fn exported_priv_warning() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
priv_dep = "0.1.0"
@@ -57,6 +58,7 @@ fn exported_pub_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
pub_dep = {version = "0.1.0", public = true}
@@ -126,6 +128,7 @@ fn requires_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
pub_dep = { version = "0.1.0", public = true }
@@ -165,6 +168,7 @@ fn pub_dev_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dev-dependencies]
pub_dep = {version = "0.1.0", public = true}
@@ -206,6 +210,7 @@ fn pub_dev_dependency_without_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dev-dependencies]
pub_dep = {version = "0.1.0", public = true}
@@ -253,6 +258,7 @@ fn workspace_pub_disallowed() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[workspace.dependencies]
foo1 = "0.1.0"
@@ -305,6 +311,7 @@ fn allow_priv_in_tests() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
priv_dep = {version = "0.1.0", public = false}
@@ -349,6 +356,7 @@ fn allow_priv_in_benchs() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
priv_dep = {version = "0.1.0", public = false}
@@ -393,6 +401,7 @@ fn allow_priv_in_bins() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
priv_dep = {version = "0.1.0", public = false}
@@ -438,6 +447,7 @@ fn allow_priv_in_examples() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
priv_dep = {version = "0.1.0", public = false}
@@ -483,6 +493,7 @@ fn allow_priv_in_custom_build() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[build-dependencies]
priv_dep = "0.1.0"
@@ -539,6 +550,7 @@ fn publish_package_with_public_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = {version = "0.1.0", public = true}
"#,
@@ -588,6 +600,7 @@ fn verify_mix_cargo_feature_z() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep = "0.1.0"
@@ -637,6 +650,7 @@ fn verify_z_public_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
dep = "0.1.0"
diff --git a/tests/testsuite/publish.rs b/tests/testsuite/publish.rs
index e6ac64e0e12..33baaa6a41d 100644
--- a/tests/testsuite/publish.rs
+++ b/tests/testsuite/publish.rs
@@ -99,6 +99,7 @@ fn simple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -144,6 +145,7 @@ fn simple_publish_with_http() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -186,6 +188,7 @@ fn simple_publish_with_asymmetric() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -225,6 +228,7 @@ fn old_token_location() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -282,6 +286,7 @@ fn simple_with_index() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -327,6 +332,7 @@ fn git_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -365,6 +371,7 @@ fn path_dependency_no_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -405,6 +412,7 @@ fn unpublishable_crate() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -440,6 +448,7 @@ fn dont_publish_dirty() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -482,6 +491,7 @@ fn publish_clean() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -530,6 +540,7 @@ fn publish_in_sub_repo() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -579,6 +590,7 @@ fn publish_when_ignored() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -629,6 +641,7 @@ fn ignore_when_crate_ignored() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -676,6 +689,7 @@ fn new_crate_rejected() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -707,6 +721,7 @@ fn dry_run() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -747,6 +762,7 @@ fn registry_not_in_publish_list() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -780,6 +796,7 @@ fn publish_empty_list() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -817,6 +834,7 @@ fn publish_allowed_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -877,6 +895,7 @@ fn publish_implicitly_to_only_allowed_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -938,6 +957,7 @@ fn publish_failed_with_index_and_only_allowed_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -974,6 +994,7 @@ fn publish_fail_with_no_registry_specified() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1006,6 +1027,7 @@ fn block_publish_no_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1039,6 +1061,7 @@ fn publish_with_crates_io_explicit() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1092,6 +1115,7 @@ fn publish_with_select_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1143,6 +1167,7 @@ fn publish_with_all_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1194,6 +1219,7 @@ fn publish_with_no_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1230,6 +1256,7 @@ fn publish_with_patch() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1337,6 +1364,7 @@ fn publish_checks_for_token_before_verify() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1577,6 +1605,7 @@ fn publish_dev_dep_no_version() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1639,6 +1668,7 @@ You may press ctrl-c [..]
&format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.1.0"
authors = []
@@ -1672,6 +1702,7 @@ fn credentials_ambiguous_filename() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1727,6 +1758,7 @@ fn index_requires_token() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1757,6 +1789,7 @@ fn cratesio_source_replacement() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1788,6 +1821,7 @@ fn publish_with_missing_readme() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1843,6 +1877,7 @@ fn api_error_json() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1891,6 +1926,7 @@ fn api_error_200() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1939,6 +1975,7 @@ fn api_error_code() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -1991,6 +2028,7 @@ fn api_curl_error() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2044,6 +2082,7 @@ fn api_other_error() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2098,6 +2137,7 @@ fn in_package_workspace() {
[package]
name = "li"
version = "0.0.1"
+ edition = "2015"
rust-version = "1.69"
description = "li"
license = "MIT"
@@ -2139,6 +2179,7 @@ fn with_duplicate_spec_in_members() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
resolver = "2"
members = ["li","bar"]
@@ -2152,6 +2193,7 @@ fn with_duplicate_spec_in_members() {
[package]
name = "li"
version = "0.0.1"
+ edition = "2015"
description = "li"
license = "MIT"
"#,
@@ -2163,6 +2205,7 @@ fn with_duplicate_spec_in_members() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
description = "bar"
license = "MIT"
"#,
@@ -2190,6 +2233,7 @@ fn in_package_workspace_with_members_with_features_old() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["li"]
"#,
@@ -2201,6 +2245,7 @@ fn in_package_workspace_with_members_with_features_old() {
[package]
name = "li"
version = "0.0.1"
+ edition = "2015"
rust-version = "1.69"
description = "li"
license = "MIT"
@@ -2249,6 +2294,7 @@ fn in_virtual_workspace() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2285,6 +2331,7 @@ fn in_virtual_workspace_with_p() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2297,6 +2344,7 @@ fn in_virtual_workspace_with_p() {
[package]
name = "li"
version = "0.0.1"
+ edition = "2015"
rust-version = "1.69"
description = "li"
license = "MIT"
@@ -2484,6 +2532,7 @@ fn http_api_not_noop() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2520,6 +2569,7 @@ You may press ctrl-c [..]
[project]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2562,6 +2612,7 @@ fn wait_for_first_publish() {
[package]
name = "delay"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2602,6 +2653,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
delay = "0.0.1"
@@ -2654,6 +2706,7 @@ fn wait_for_first_publish_underscore() {
[package]
name = "delay_with_underscore"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2701,6 +2754,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
delay_with_underscore = "0.0.1"
@@ -2753,6 +2807,7 @@ fn wait_for_subsequent_publish() {
[package]
name = "delay"
version = "0.0.2"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2793,6 +2848,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
delay = "0.0.2"
@@ -2816,6 +2872,7 @@ fn skip_wait_for_publish() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2862,6 +2919,7 @@ fn timeout_waiting_for_publish() {
[package]
name = "delay"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2919,6 +2977,7 @@ fn wait_for_git_publish() {
[package]
name = "delay"
version = "0.0.2"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -2953,6 +3012,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
delay = "0.0.2"
@@ -2976,6 +3036,7 @@ fn invalid_token() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
diff --git a/tests/testsuite/publish_lockfile.rs b/tests/testsuite/publish_lockfile.rs
index eea5c755123..2d76b467233 100644
--- a/tests/testsuite/publish_lockfile.rs
+++ b/tests/testsuite/publish_lockfile.rs
@@ -13,6 +13,7 @@ fn pl_manifest(name: &str, version: &str, extra: &str) -> String {
[package]
name = "{}"
version = "{}"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -36,6 +37,7 @@ fn removed() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
publish-lockfile = true
license = "MIT"
description = "foo"
@@ -517,6 +519,7 @@ fn use_workspace_root_lockfile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -535,6 +538,7 @@ fn use_workspace_root_lockfile() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "bar"
diff --git a/tests/testsuite/registry.rs b/tests/testsuite/registry.rs
index c442a1edbc1..a33c324d9d6 100644
--- a/tests/testsuite/registry.rs
+++ b/tests/testsuite/registry.rs
@@ -44,6 +44,7 @@ fn simple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -103,6 +104,7 @@ fn deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -154,6 +156,7 @@ fn nonexistent() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -197,6 +200,7 @@ fn wrong_case() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -243,6 +247,7 @@ fn mis_hyphenated() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -287,6 +292,7 @@ fn wrong_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -346,6 +352,7 @@ fn bad_cksum() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -396,6 +403,7 @@ fn update_registry() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -453,6 +461,7 @@ fn package_with_path_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -522,6 +531,7 @@ fn lockfile_locks() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -571,6 +581,7 @@ fn lockfile_locks_transitively() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -624,6 +635,7 @@ fn yanks_are_not_used() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -676,6 +688,7 @@ fn relying_on_a_yank_is_bad() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -722,6 +735,7 @@ fn yanks_in_lockfiles_are_ok() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -772,6 +786,7 @@ fn yanks_in_lockfiles_are_ok_for_other_update() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -836,6 +851,7 @@ fn yanks_in_lockfiles_are_ok_with_new_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -860,6 +876,7 @@ fn yanks_in_lockfiles_are_ok_with_new_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -901,6 +918,7 @@ fn update_with_lockfile_if_packages_missing() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -946,6 +964,7 @@ fn update_lockfile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1053,6 +1072,7 @@ fn dev_dependency_not_used() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1100,6 +1120,7 @@ fn bad_license_file(registry: &TestRegistry) {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license-file = "foo"
description = "bar"
@@ -1134,6 +1155,7 @@ fn updating_a_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.a]
@@ -1147,6 +1169,7 @@ fn updating_a_dep() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1185,6 +1208,7 @@ fn updating_a_dep() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1233,6 +1257,7 @@ fn git_and_registry_dep() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1249,6 +1274,7 @@ fn git_and_registry_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1307,6 +1333,7 @@ fn update_publish_then_update() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1335,6 +1362,7 @@ fn update_publish_then_update() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1387,6 +1415,7 @@ fn fetch_downloads() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1428,6 +1457,7 @@ fn update_transitive_dependency() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1486,6 +1516,7 @@ fn update_backtracking_ok() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1545,6 +1576,7 @@ fn update_multiple_packages() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1616,6 +1648,7 @@ fn bundled_crate_in_registry() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1635,6 +1668,7 @@ fn bundled_crate_in_registry() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1668,6 +1702,7 @@ fn update_same_prefix_oh_my_how_was_this_a_bug() {
[package]
name = "ugh"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1705,6 +1740,7 @@ fn use_semver() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1745,6 +1781,7 @@ fn use_semver_package_incorrectly() {
[package]
name = "a"
version = "0.1.1-alpha.0"
+ edition = "2015"
authors = []
"#,
)
@@ -1754,6 +1791,7 @@ fn use_semver_package_incorrectly() {
[package]
name = "b"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1798,6 +1836,7 @@ fn only_download_relevant() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[target.foo.dependencies]
@@ -1848,6 +1887,7 @@ fn resolve_and_backtracking() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1884,6 +1924,7 @@ fn upstream_warnings_on_extra_verbose() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1912,6 +1953,7 @@ fn disallow_network_http() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1948,6 +1990,7 @@ fn disallow_network_git() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1998,6 +2041,7 @@ fn add_dep_dont_update_registry() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2011,6 +2055,7 @@ fn add_dep_dont_update_registry() {
[package]
name = "baz"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2030,6 +2075,7 @@ fn add_dep_dont_update_registry() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2067,6 +2113,7 @@ fn bump_version_dont_update_registry() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2080,6 +2127,7 @@ fn bump_version_dont_update_registry() {
[package]
name = "baz"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2099,6 +2147,7 @@ fn bump_version_dont_update_registry() {
[package]
name = "bar"
version = "0.6.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2137,6 +2186,7 @@ fn toml_lies_but_index_is_truth() {
[package]
name = "bar"
version = "0.3.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2153,6 +2203,7 @@ fn toml_lies_but_index_is_truth() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2191,6 +2242,7 @@ fn vv_prints_warnings() {
[package]
name = "fo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2226,6 +2278,7 @@ fn bad_and_or_malicious_packages_rejected() {
[package]
name = "fo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2276,6 +2329,7 @@ fn git_init_templatedir_missing() {
[package]
name = "fo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2350,6 +2404,7 @@ fn rename_deps_and_features() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2393,6 +2448,7 @@ fn ignore_invalid_json_lines() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2427,6 +2483,7 @@ fn readonly_registry_still_works() {
[package]
name = "a"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2491,6 +2548,7 @@ fn registry_index_rejected() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = "0.1"
@@ -2533,6 +2591,7 @@ fn package_lock_inside_package_is_overwritten() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2571,6 +2630,7 @@ fn package_lock_as_a_symlink_inside_package_is_overwritten() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2627,6 +2687,7 @@ fn ignores_unknown_index_version() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -2658,6 +2719,7 @@ fn unknown_index_version_error() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -2707,6 +2769,7 @@ fn reach_max_unpack_size() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = ">= 0.0.0"
@@ -2777,6 +2840,7 @@ fn sparse_retry_single() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2834,6 +2898,7 @@ fn sparse_retry_multiple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
"#
@@ -2914,6 +2979,7 @@ fn dl_retry_single() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -2975,6 +3041,7 @@ fn dl_retry_multiple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
"#
@@ -3040,6 +3107,7 @@ fn deleted_entry() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -3154,6 +3222,7 @@ fn corrupted_ok_overwritten() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1"
@@ -3212,6 +3281,7 @@ fn not_found_permutations() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -3259,6 +3329,7 @@ fn default_auth_error() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
license = "MIT"
description = "foo"
"#,
@@ -3357,6 +3428,7 @@ fn debug_header_message_index() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -3417,6 +3489,7 @@ fn debug_header_message_dl() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -3470,6 +3543,7 @@ fn set_mask_during_unpacking() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -3519,6 +3593,7 @@ fn unpack_again_when_cargo_ok_is_unrecognized() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
@@ -3588,6 +3663,7 @@ fn differ_only_by_metadata() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -3630,6 +3706,7 @@ fn differ_only_by_metadata_with_lockfile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -3678,6 +3755,7 @@ fn builtin_source_replacement() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bad-cksum = ">= 0.0.0"
diff --git a/tests/testsuite/registry_auth.rs b/tests/testsuite/registry_auth.rs
index 83c17e2980f..6c8382fdf47 100644
--- a/tests/testsuite/registry_auth.rs
+++ b/tests/testsuite/registry_auth.rs
@@ -23,6 +23,7 @@ fn make_project() -> Project {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -452,6 +453,7 @@ fn token_not_logged() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "1.0"
diff --git a/tests/testsuite/rename_deps.rs b/tests/testsuite/rename_deps.rs
index f2744049b3e..58e386c5794 100644
--- a/tests/testsuite/rename_deps.rs
+++ b/tests/testsuite/rename_deps.rs
@@ -17,6 +17,7 @@ fn rename_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -39,6 +40,7 @@ fn rename_with_different_names() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -52,6 +54,7 @@ fn rename_with_different_names() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -91,6 +94,7 @@ fn lots_of_names() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -139,6 +143,7 @@ fn rename_and_patch() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -170,6 +175,7 @@ fn rename_twice() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -205,6 +211,7 @@ fn rename_affects_fingerprint() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -222,6 +229,7 @@ fn rename_affects_fingerprint() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -247,6 +255,7 @@ fn can_run_doc_tests() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { version = "0.1.0" }
@@ -288,6 +297,7 @@ fn features_still_work() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -302,6 +312,7 @@ fn features_still_work() {
[package]
name = "p1"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -315,6 +326,7 @@ fn features_still_work() {
[package]
name = "p2"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -342,6 +354,7 @@ fn features_not_working() {
[package]
name = "test"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -377,6 +390,7 @@ fn rename_with_dash() {
[package]
name = "qwerty"
version = "0.1.0"
+ edition = "2015"
[dependencies]
foo-bar = { path = 'a', package = 'a' }
diff --git a/tests/testsuite/replace.rs b/tests/testsuite/replace.rs
index eb5580effc9..71b691de345 100644
--- a/tests/testsuite/replace.rs
+++ b/tests/testsuite/replace.rs
@@ -22,6 +22,7 @@ fn override_simple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -69,6 +70,7 @@ fn override_with_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -118,6 +120,7 @@ fn override_with_setting_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -159,6 +162,7 @@ fn missing_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -193,6 +197,7 @@ fn invalid_semver_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -230,6 +235,7 @@ fn different_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -276,6 +282,7 @@ fn transitive() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -325,6 +332,7 @@ fn persists_across_rebuilds() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -374,6 +382,7 @@ fn replace_registry_with_path() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -428,6 +437,7 @@ fn use_a_spec_to_select() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -484,6 +494,7 @@ fn override_adds_some_deps() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -501,6 +512,7 @@ fn override_adds_some_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -569,6 +581,7 @@ fn locked_means_locked_yes_no_seriously_i_mean_locked() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -586,6 +599,7 @@ fn locked_means_locked_yes_no_seriously_i_mean_locked() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -624,6 +638,7 @@ fn override_wrong_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -671,6 +686,7 @@ fn override_with_nothing() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -715,6 +731,7 @@ fn override_wrong_version() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[replace]
@@ -754,6 +771,7 @@ fn multiple_specs() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -808,6 +826,7 @@ fn test_override_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -852,6 +871,7 @@ fn update() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -890,6 +910,7 @@ fn no_override_self() {
[package]
name = "near"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -907,6 +928,7 @@ fn no_override_self() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -943,6 +965,7 @@ fn override_an_override() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1012,6 +1035,7 @@ fn override_an_override() {
[package]
name = "chrono"
version = "0.2.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1046,6 +1070,7 @@ fn overriding_nonexistent_no_spurious() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1065,6 +1090,7 @@ fn overriding_nonexistent_no_spurious() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1114,6 +1140,7 @@ fn no_warnings_when_replace_is_used_in_another_workspace_member() {
[package]
name = "first_crate"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1.0"
@@ -1164,6 +1191,7 @@ fn replace_to_path_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1180,6 +1208,7 @@ fn replace_to_path_dep() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1210,6 +1239,7 @@ fn override_with_default_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1228,6 +1258,7 @@ fn override_with_default_feature() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -1247,6 +1278,7 @@ fn override_with_default_feature() {
[package]
name = "another2"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1270,6 +1302,7 @@ fn override_plus_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1286,6 +1319,7 @@ fn override_plus_dep() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1318,6 +1352,7 @@ fn override_generic_matching_other_versions() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1368,6 +1403,7 @@ fn override_respects_spec_metadata() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1425,6 +1461,7 @@ fn override_spec_metadata_is_optional() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
diff --git a/tests/testsuite/required_features.rs b/tests/testsuite/required_features.rs
index ce655cafebf..850290ad8cf 100644
--- a/tests/testsuite/required_features.rs
+++ b/tests/testsuite/required_features.rs
@@ -16,6 +16,7 @@ fn build_bin_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -71,6 +72,7 @@ fn build_bin_arg_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -97,6 +99,7 @@ fn build_bin_multiple_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -142,6 +145,7 @@ fn build_example_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -179,6 +183,7 @@ fn build_example_arg_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -205,6 +210,7 @@ fn build_example_multiple_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -275,6 +281,7 @@ fn test_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -333,6 +340,7 @@ fn test_arg_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -366,6 +374,7 @@ fn test_multiple_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -423,6 +432,7 @@ fn bench_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -491,6 +501,7 @@ fn bench_arg_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -534,6 +545,7 @@ fn bench_multiple_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -611,6 +623,7 @@ fn install_default_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -701,6 +714,7 @@ fn install_arg_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -728,6 +742,7 @@ fn install_multiple_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -866,6 +881,7 @@ fn dep_feature_in_toml() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -908,6 +924,7 @@ fn dep_feature_in_toml() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -967,6 +984,7 @@ fn dep_feature_in_cmd_line() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -1019,6 +1037,7 @@ fn dep_feature_in_cmd_line() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1130,6 +1149,7 @@ fn test_skips_compiling_bin_with_missing_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1196,6 +1216,7 @@ fn run_default() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -1233,6 +1254,7 @@ fn run_default_multiple_required_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
diff --git a/tests/testsuite/run.rs b/tests/testsuite/run.rs
index f271fedc255..d745093a1e7 100644
--- a/tests/testsuite/run.rs
+++ b/tests/testsuite/run.rs
@@ -363,6 +363,7 @@ fn specify_default_run() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
default-run = "a"
"#,
@@ -386,6 +387,7 @@ fn bogus_default_run() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
default-run = "b"
"#,
@@ -437,6 +439,7 @@ fn run_library_example() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
name = "bar"
@@ -462,6 +465,7 @@ fn run_bin_example() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[[example]]
name = "bar"
crate_type = ["bin"]
@@ -604,6 +608,7 @@ fn autobins_disables() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
autobins = false
"#,
)
@@ -744,6 +749,7 @@ fn example_with_release_flag() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -851,6 +857,7 @@ fn run_dylib_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -889,6 +896,7 @@ fn run_with_bin_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar]
path = "bar"
@@ -901,6 +909,7 @@ fn run_with_bin_dep() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -931,6 +940,7 @@ fn run_with_bin_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar1]
path = "bar1"
@@ -945,6 +955,7 @@ fn run_with_bin_deps() {
[package]
name = "bar1"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -958,6 +969,7 @@ fn run_with_bin_deps() {
[package]
name = "bar2"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -996,6 +1008,7 @@ fn run_with_bin_dep_in_workspace() {
[package]
name = "foo1"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar1]
path = "bar1"
@@ -1008,6 +1021,7 @@ fn run_with_bin_dep_in_workspace() {
[package]
name = "bar1"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1024,6 +1038,7 @@ fn run_with_bin_dep_in_workspace() {
[package]
name = "foo2"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar2]
path = "bar2"
@@ -1036,6 +1051,7 @@ fn run_with_bin_dep_in_workspace() {
[package]
name = "bar2"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1125,6 +1141,7 @@ fn run_bin_different_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1195,6 +1212,7 @@ fn run_with_library_paths() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1254,6 +1272,7 @@ fn library_paths_sorted_alphabetically() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1317,6 +1336,7 @@ fn run_multiple_packages() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace]
@@ -1446,6 +1466,7 @@ fn default_run_workspace() {
[package]
name = "a"
version = "0.0.1"
+ edition = "2015"
default-run = "a"
"#,
)
@@ -1490,6 +1511,7 @@ fn run_link_system_path_macos() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[lib]
crate-type = ["cdylib"]
"#,
@@ -1576,6 +1598,7 @@ fn run_binary_with_same_name_as_dependency() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1594,6 +1617,7 @@ fn run_binary_with_same_name_as_dependency() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[lib]
diff --git a/tests/testsuite/rust_version.rs b/tests/testsuite/rust_version.rs
index 863ca63b54c..6d1176b6e94 100644
--- a/tests/testsuite/rust_version.rs
+++ b/tests/testsuite/rust_version.rs
@@ -11,6 +11,7 @@ fn rust_version_satisfied() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.1.1"
[[bin]]
@@ -33,6 +34,7 @@ fn rust_version_bad_caret() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "^1.43"
[[bin]]
@@ -46,9 +48,9 @@ fn rust_version_bad_caret() {
.with_stderr(
"\
[ERROR] unexpected version requirement, expected a version like \"1.32\"
- --> Cargo.toml:6:28
+ --> Cargo.toml:7:28
|
-6 | rust-version = \"^1.43\"
+7 | rust-version = \"^1.43\"
| ^^^^^^^
|
",
@@ -65,6 +67,7 @@ fn rust_version_good_pre_release() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.43.0-beta.1"
[[bin]]
@@ -78,9 +81,9 @@ fn rust_version_good_pre_release() {
.with_stderr(
"\
[ERROR] unexpected prerelease field, expected a version like \"1.32\"
- --> Cargo.toml:6:28
+ --> Cargo.toml:7:28
|
-6 | rust-version = \"1.43.0-beta.1\"
+7 | rust-version = \"1.43.0-beta.1\"
| ^^^^^^^^^^^^^^^
|
",
@@ -97,6 +100,7 @@ fn rust_version_bad_pre_release() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.43-beta.1"
[[bin]]
@@ -110,9 +114,9 @@ fn rust_version_bad_pre_release() {
.with_stderr(
"\
[ERROR] unexpected prerelease field, expected a version like \"1.32\"
- --> Cargo.toml:6:28
+ --> Cargo.toml:7:28
|
-6 | rust-version = \"1.43-beta.1\"
+7 | rust-version = \"1.43-beta.1\"
| ^^^^^^^^^^^^^
|
",
@@ -129,6 +133,7 @@ fn rust_version_bad_nonsense() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "foodaddle"
[[bin]]
@@ -142,9 +147,9 @@ fn rust_version_bad_nonsense() {
.with_stderr(
"\
[ERROR] expected a version like \"1.32\"
- --> Cargo.toml:6:28
+ --> Cargo.toml:7:28
|
-6 | rust-version = \"foodaddle\"
+7 | rust-version = \"foodaddle\"
| ^^^^^^^^^^^
|
",
@@ -161,6 +166,7 @@ fn rust_version_too_high() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.9876.0"
[[bin]]
@@ -194,6 +200,7 @@ fn dependency_rust_version_newer_than_rustc() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
bar = "0.0.1"
@@ -232,6 +239,7 @@ fn dependency_rust_version_newer_than_package() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.60.0"
[dependencies]
@@ -269,6 +277,7 @@ fn dependency_rust_version_older_and_newer_than_package() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.60.0"
[dependencies]
@@ -325,6 +334,7 @@ fn dependency_rust_version_backtracking() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.60.0"
[dependencies]
@@ -386,6 +396,7 @@ fn workspace_with_mixed_rust_version() {
[package]
name = "higher"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.60.0"
[dependencies]
@@ -399,6 +410,7 @@ fn workspace_with_mixed_rust_version() {
[package]
name = "lower"
version = "0.0.1"
+ edition = "2015"
authors = []
rust-version = "1.50.0"
[dependencies]
diff --git a/tests/testsuite/rustc.rs b/tests/testsuite/rustc.rs
index 8b18bf928de..6c66d72e7d9 100644
--- a/tests/testsuite/rustc.rs
+++ b/tests/testsuite/rustc.rs
@@ -161,6 +161,7 @@ fn fails_with_crate_type_to_multi_examples() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -229,6 +230,7 @@ fn build_with_crate_type_for_foo_with_deps() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -276,6 +278,7 @@ fn build_with_crate_type_to_example() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -308,6 +311,7 @@ fn build_with_crate_types_to_example() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -340,6 +344,7 @@ fn build_with_crate_types_to_one_of_multi_examples() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[example]]
@@ -400,6 +405,7 @@ fn build_foo_with_bar_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -436,6 +442,7 @@ fn build_only_bar_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -509,6 +516,7 @@ fn fail_with_multiple_packages() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -586,6 +594,7 @@ fn rustc_with_other_profile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies]
diff --git a/tests/testsuite/rustdoc.rs b/tests/testsuite/rustdoc.rs
index b189d2d12f1..9cdfd29e1a0 100644
--- a/tests/testsuite/rustdoc.rs
+++ b/tests/testsuite/rustdoc.rs
@@ -145,6 +145,7 @@ fn rustdoc_foo_with_bar_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -188,6 +189,7 @@ fn rustdoc_only_bar_dependency() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -252,6 +254,7 @@ fn features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
@@ -275,6 +278,7 @@ fn proc_macro_crate_type() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
diff --git a/tests/testsuite/source_replacement.rs b/tests/testsuite/source_replacement.rs
index f74a8e25bec..04d5b16f757 100644
--- a/tests/testsuite/source_replacement.rs
+++ b/tests/testsuite/source_replacement.rs
@@ -39,6 +39,7 @@ fn crates_io_token_not_sent_to_replacement() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -189,6 +190,7 @@ fn publish_with_replacement() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
license = "MIT"
description = "foo"
@@ -272,6 +274,7 @@ fn source_replacement_with_registry_url() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies.bar]
version = "0.0.1"
"#,
diff --git a/tests/testsuite/test.rs b/tests/testsuite/test.rs
index 5699830c4ba..ec59a41da1d 100644
--- a/tests/testsuite/test.rs
+++ b/tests/testsuite/test.rs
@@ -59,6 +59,7 @@ fn cargo_test_release() {
name = "foo"
authors = []
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -116,6 +117,7 @@ fn cargo_test_overflow_checks() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -154,6 +156,7 @@ fn cargo_test_quiet_with_harness() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[[test]]
@@ -193,6 +196,7 @@ fn cargo_test_quiet_no_harness() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[[bin]]
@@ -226,6 +230,7 @@ fn cargo_doc_test_quiet() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
"#,
)
@@ -498,6 +503,7 @@ fn test_with_lib_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -558,6 +564,7 @@ fn test_with_deep_lib_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.bar]
@@ -610,6 +617,7 @@ fn external_test_explicit() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[test]]
@@ -661,6 +669,7 @@ fn external_test_named_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[test]]
@@ -893,6 +902,7 @@ fn lib_bin_same_name() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -979,6 +989,7 @@ fn lib_with_standard_name2() {
[package]
name = "syntax"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1021,6 +1032,7 @@ fn lib_without_name() {
[package]
name = "syntax"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1062,6 +1074,7 @@ fn bin_without_name() {
[package]
name = "syntax"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1107,6 +1120,7 @@ fn bench_without_name() {
[package]
name = "syntax"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1163,6 +1177,7 @@ fn test_without_name() {
[package]
name = "syntax"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1223,6 +1238,7 @@ fn example_without_name() {
[package]
name = "syntax"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1307,6 +1323,7 @@ fn test_dylib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1343,6 +1360,7 @@ fn test_dylib() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1386,6 +1404,7 @@ fn test_twice_with_build_cmd() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -1479,6 +1498,7 @@ fn test_run_specific_bin_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1514,6 +1534,7 @@ fn test_run_implicit_bin_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1575,6 +1596,7 @@ fn test_run_implicit_test_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1616,6 +1638,7 @@ fn test_run_implicit_bench_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1657,6 +1680,7 @@ fn test_run_implicit_example_target() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1731,6 +1755,7 @@ fn test_filtered_excludes_compiling_examples() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1801,6 +1826,7 @@ fn test_no_harness() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[[bin]]
@@ -1837,6 +1863,7 @@ fn selective_testing() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -1856,6 +1883,7 @@ fn selective_testing() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1874,6 +1902,7 @@ fn selective_testing() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -1933,6 +1962,7 @@ fn almost_cyclic_but_not_quite() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies.b]
@@ -1954,6 +1984,7 @@ fn almost_cyclic_but_not_quite() {
[package]
name = "b"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.foo]
@@ -1984,6 +2015,7 @@ fn build_then_selective_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.b]
@@ -2022,6 +2054,7 @@ fn example_dev_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies.bar]
@@ -2063,6 +2096,7 @@ fn selective_testing_with_docs() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -2084,6 +2118,7 @@ fn selective_testing_with_docs() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2168,6 +2203,7 @@ fn example_with_dev_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2251,6 +2287,7 @@ fn doctest_feature() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[features]
bar = []
@@ -2308,6 +2345,7 @@ fn doctest_dev_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies]
@@ -2365,6 +2403,7 @@ fn dylib_doctest() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2405,6 +2444,7 @@ fn dylib_doctest2() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2436,6 +2476,7 @@ fn cyclic_dev_dep_doc_test() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies]
@@ -2456,6 +2497,7 @@ fn cyclic_dev_dep_doc_test() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2493,6 +2535,7 @@ fn dev_dep_with_build_script() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dev-dependencies]
@@ -2507,6 +2550,7 @@ fn dev_dep_with_build_script() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
build = "build.rs"
"#,
@@ -2597,6 +2641,7 @@ fn test_multiple_packages() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies.d1]
@@ -2616,6 +2661,7 @@ fn test_multiple_packages() {
[package]
name = "d1"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2630,6 +2676,7 @@ fn test_multiple_packages() {
[package]
name = "d2"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2685,6 +2732,7 @@ fn selective_test_wonky_profile() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.release]
@@ -2711,6 +2759,7 @@ fn selective_test_optional_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2824,6 +2873,7 @@ fn test_panic_abort_with_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2857,6 +2907,7 @@ fn cfg_test_even_with_no_harness() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[lib]
@@ -2891,6 +2942,7 @@ fn panic_abort_multiple() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -2919,6 +2971,7 @@ fn pass_correct_cfgs_flags_to_rustdoc() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -2948,6 +3001,7 @@ fn pass_correct_cfgs_flags_to_rustdoc() {
[package]
name = "feature_a"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -3013,6 +3067,7 @@ fn test_release_ignore_panic() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -3046,6 +3101,7 @@ fn test_many_with_features() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -3074,6 +3130,7 @@ fn test_all_workspace() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -3101,6 +3158,7 @@ fn test_all_exclude() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar", "baz"]
@@ -3130,6 +3188,7 @@ fn test_all_exclude_not_found() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar"]
@@ -3158,6 +3217,7 @@ fn test_all_exclude_glob() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar", "baz"]
@@ -3187,6 +3247,7 @@ fn test_all_exclude_glob_not_found() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar"]
@@ -3362,6 +3423,7 @@ fn test_all_member_dependency_same_name() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = "0.1.0"
@@ -3386,6 +3448,7 @@ fn doctest_only_with_dev_dep() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dev-dependencies]
b = { path = "b" }
@@ -3472,6 +3535,7 @@ fn doctest_and_registry() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = { path = "b" }
@@ -3497,6 +3561,7 @@ fn doctest_and_registry() {
[package]
name = "c"
version = "0.1.0"
+ edition = "2015"
[dependencies]
b = "0.1"
@@ -3591,6 +3656,7 @@ fn cyclic_dev() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dev-dependencies]
foo = { path = "." }
@@ -3614,6 +3680,7 @@ fn cyclical_dep_with_missing_feature() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dev-dependencies]
foo = { path = ".", features = ["missing"] }
@@ -3645,6 +3712,7 @@ fn publish_a_crate_without_tests() {
[package]
name = "testless"
version = "0.1.0"
+ edition = "2015"
exclude = ["tests/*"]
[[test]]
@@ -3666,6 +3734,7 @@ fn publish_a_crate_without_tests() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
testless = "0.1.0"
@@ -3694,6 +3763,7 @@ fn find_dependency_of_proc_macro_dependency_with_target() {
[package]
name = "root"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -3716,6 +3786,7 @@ fn find_dependency_of_proc_macro_dependency_with_target() {
[package]
name = "proc_macro_dep"
version = "0.1.0"
+ edition = "2015"
authors = []
[lib]
@@ -3920,6 +3991,7 @@ fn test_hint_workspace_nonvirtual() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["a"]
@@ -3950,6 +4022,7 @@ fn json_artifact_includes_test_flag() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[profile.test]
@@ -4080,6 +4153,7 @@ fn test_build_script_links() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
links = 'something'
[lib]
@@ -4102,6 +4176,7 @@ fn doctest_skip_staticlib() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[lib]
crate-type = ["staticlib"]
@@ -4265,6 +4340,7 @@ fn test_dep_with_dev() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
[dependencies]
bar = { path = "bar" }
@@ -4277,6 +4353,7 @@ fn test_dep_with_dev() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
[dev-dependencies]
devdep = "0.1"
@@ -4506,6 +4583,7 @@ fn panic_abort_tests() {
[package]
name = 'foo'
version = '0.1.0'
+ edition = "2015"
[dependencies]
a = { path = 'a' }
@@ -4546,6 +4624,7 @@ fn panic_abort_doc_tests() {
[package]
name = 'foo'
version = '0.1.0'
+ edition = "2015"
[profile.dev]
panic = 'abort'
@@ -4577,6 +4656,7 @@ fn panic_abort_only_test() {
[package]
name = 'foo'
version = '0.1.0'
+ edition = "2015"
[dependencies]
a = { path = 'a' }
@@ -4613,6 +4693,7 @@ fn panic_abort_test_profile_inherits() {
[package]
name = 'foo'
version = '0.1.0'
+ edition = "2015"
[dependencies]
a = { path = 'a' }
diff --git a/tests/testsuite/timings.rs b/tests/testsuite/timings.rs
index 8f06ac69bc7..17da2164a13 100644
--- a/tests/testsuite/timings.rs
+++ b/tests/testsuite/timings.rs
@@ -14,6 +14,7 @@ fn timings_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = "0.1"
diff --git a/tests/testsuite/update.rs b/tests/testsuite/update.rs
index 6f90aacbdff..b4a71e41c24 100644
--- a/tests/testsuite/update.rs
+++ b/tests/testsuite/update.rs
@@ -13,6 +13,7 @@ fn minor_update_two_places() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -27,6 +28,7 @@ fn minor_update_two_places() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -45,6 +47,7 @@ fn minor_update_two_places() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -67,6 +70,7 @@ fn transitive_minor_update() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -82,6 +86,7 @@ fn transitive_minor_update() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -127,6 +132,7 @@ fn conservative() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -142,6 +148,7 @@ fn conservative() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -177,6 +184,7 @@ fn update_via_new_dep() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -191,6 +199,7 @@ fn update_via_new_dep() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -217,6 +226,7 @@ fn update_via_new_member() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[workspace]
@@ -233,6 +243,7 @@ fn update_via_new_member() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -259,6 +270,7 @@ fn add_dep_deep_new_requirement() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -289,6 +301,7 @@ fn everything_real_deep() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -317,6 +330,7 @@ fn change_package_version() {
[package]
name = "a-foo"
version = "0.2.0-alpha"
+ edition = "2015"
authors = []
[dependencies]
@@ -356,6 +370,7 @@ fn update_precise() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -370,6 +385,7 @@ fn update_precise() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -407,6 +423,7 @@ fn update_precise_mismatched() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -460,6 +477,7 @@ fn update_precise_build_metadata() {
[package]
name = "foo"
version = "0.0.0"
+ edition = "2015"
[dependencies]
serde = "0.0.1"
@@ -504,6 +522,7 @@ fn update_precise_do_not_force_update_deps() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -541,6 +560,7 @@ fn update_recursive() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -578,6 +598,7 @@ fn update_aggressive_alias_for_recursive() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -615,6 +636,7 @@ fn update_recursive_conflicts_with_precise() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -659,6 +681,7 @@ fn update_precise_first_run() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
[dependencies]
serde = "0.2"
@@ -867,6 +890,7 @@ fn dry_run_update() {
[package]
name = "bar"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -882,6 +906,7 @@ fn dry_run_update() {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
@@ -924,6 +949,7 @@ fn workspace_only() {
name = "foo"
authors = []
version = "0.0.2"
+ edition = "2015"
"#,
);
p.cargo("update --workspace").run();
@@ -947,6 +973,7 @@ fn precise_with_build_metadata() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = "0.1"
@@ -1302,6 +1329,7 @@ fn update_precise_git_revisions() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
git = {{ git = '{url}' }}
@@ -1571,6 +1599,7 @@ fn update_with_missing_feature() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = {version="0.1", features=["feat1"]}
diff --git a/tests/testsuite/warn_on_failure.rs b/tests/testsuite/warn_on_failure.rs
index 51a6e1608e3..9757e646f3d 100644
--- a/tests/testsuite/warn_on_failure.rs
+++ b/tests/testsuite/warn_on_failure.rs
@@ -15,6 +15,7 @@ fn make_lib(lib_src: &str) {
name = "bar"
authors = []
version = "0.0.1"
+ edition = "2015"
build = "build.rs"
"#,
)
@@ -45,6 +46,7 @@ fn make_upstream(main_src: &str) -> Project {
[package]
name = "foo"
version = "0.0.1"
+ edition = "2015"
authors = []
[dependencies]
diff --git a/tests/testsuite/weak_dep_features.rs b/tests/testsuite/weak_dep_features.rs
index 8520793ae6e..f1e460f64cf 100644
--- a/tests/testsuite/weak_dep_features.rs
+++ b/tests/testsuite/weak_dep_features.rs
@@ -33,6 +33,7 @@ fn simple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional = true }
@@ -91,6 +92,7 @@ fn deferred() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = { version = "1.0", features = ["feat"] }
@@ -130,6 +132,7 @@ fn not_optional_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
dep = "1.0"
@@ -168,6 +171,7 @@ fn optional_cli_syntax() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional = true }
@@ -237,6 +241,7 @@ fn required_features() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional = true }
@@ -317,6 +322,7 @@ fn weak_with_host_decouple() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
resolver = "2"
[dependencies]
@@ -377,6 +383,7 @@ fn weak_namespaced() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional = true }
@@ -448,6 +455,7 @@ fn tree() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
bar = { version = "1.0", optional = true }
@@ -534,6 +542,7 @@ fn publish() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
description = "foo"
license = "MIT"
homepage = "https://example.com/"
@@ -612,6 +621,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
&format!(
r#"{}
[package]
+edition = "2015"
name = "foo"
version = "0.1.0"
description = "foo"
diff --git a/tests/testsuite/workspaces.rs b/tests/testsuite/workspaces.rs
index c5008f17ea9..eec1802f71f 100644
--- a/tests/testsuite/workspaces.rs
+++ b/tests/testsuite/workspaces.rs
@@ -14,6 +14,7 @@ fn simple_explicit() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -27,6 +28,7 @@ fn simple_explicit() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -55,6 +57,7 @@ fn simple_explicit_default_members() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -69,6 +72,7 @@ fn simple_explicit_default_members() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -90,6 +94,7 @@ fn non_virtual_default_members_build_other_member() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -128,6 +133,7 @@ fn non_virtual_default_members_build_root_project() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -157,6 +163,7 @@ fn inferred_root() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -189,6 +196,7 @@ fn inferred_path_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -224,6 +232,7 @@ fn transitive_path_dep() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -239,6 +248,7 @@ fn transitive_path_dep() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -281,6 +291,7 @@ fn parent_pointer_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -296,6 +307,7 @@ fn parent_pointer_works() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../foo"
"#,
@@ -319,6 +331,7 @@ fn same_names_in_workspace() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -332,6 +345,7 @@ fn same_names_in_workspace() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -360,6 +374,7 @@ fn parent_doesnt_point_to_child() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -395,6 +410,7 @@ fn invalid_parent_pointer() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "foo"
"#,
@@ -424,6 +440,7 @@ fn invalid_members() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -459,6 +476,7 @@ fn bare_workspace_ok() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -479,6 +497,7 @@ fn two_roots() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -492,6 +511,7 @@ fn two_roots() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -522,6 +542,7 @@ fn workspace_isnt_root() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "bar"
"#,
@@ -546,6 +567,7 @@ fn dangling_member() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -559,6 +581,7 @@ fn dangling_member() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../baz"
"#,
@@ -570,6 +593,7 @@ fn dangling_member() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../baz"
"#,
@@ -598,6 +622,7 @@ fn cycle() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "bar"
"#,
@@ -609,6 +634,7 @@ fn cycle() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -633,6 +659,7 @@ fn share_dependencies() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -649,6 +676,7 @@ fn share_dependencies() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -684,6 +712,7 @@ fn fetch_fetches_all() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -697,6 +726,7 @@ fn fetch_fetches_all() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -728,6 +758,7 @@ fn lock_works_for_everyone() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -744,6 +775,7 @@ fn lock_works_for_everyone() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -972,6 +1004,7 @@ fn include_virtual() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
members = ["bar"]
@@ -1006,6 +1039,7 @@ fn members_include_path_deps() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1022,6 +1056,7 @@ fn members_include_path_deps() {
[package]
name = "p1"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1055,6 +1090,7 @@ fn new_creates_members_list() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1102,6 +1138,7 @@ fn lock_doesnt_change_depending_on_crate() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1118,6 +1155,7 @@ fn lock_doesnt_change_depending_on_crate() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1164,6 +1202,7 @@ fn rebuild_please() {
[package]
name = "bin"
version = "0.1.0"
+ edition = "2015"
[dependencies]
lib = { path = "../lib" }
@@ -1218,6 +1257,7 @@ fn workspace_in_git() {
[package]
name = "lib"
version = "0.1.0"
+ edition = "2015"
[dependencies.foo]
git = '{}'
@@ -1294,6 +1334,7 @@ fn workspace_with_transitive_dev_deps() {
[package]
name = "foo"
version = "0.5.0"
+ edition = "2015"
authors = ["mbrubeck@example.com"]
[dependencies.bar]
@@ -1309,6 +1350,7 @@ fn workspace_with_transitive_dev_deps() {
[package]
name = "bar"
version = "0.5.0"
+ edition = "2015"
authors = ["mbrubeck@example.com"]
[dev-dependencies.baz]
@@ -1369,6 +1411,7 @@ fn relative_path_for_member_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1382,6 +1425,7 @@ fn relative_path_for_member_works() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../foo"
"#,
@@ -1402,6 +1446,7 @@ fn relative_path_for_root_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1432,6 +1477,7 @@ fn path_dep_outside_workspace_is_not_member() {
[package]
name = "ws"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1458,6 +1504,7 @@ fn test_in_and_out_of_workspace() {
[package]
name = "ws"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1474,6 +1521,7 @@ fn test_in_and_out_of_workspace() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1491,6 +1539,7 @@ fn test_in_and_out_of_workspace() {
workspace = "../ws"
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
"#,
)
@@ -1522,6 +1571,7 @@ fn test_path_dependency_under_member() {
[package]
name = "ws"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1538,6 +1588,7 @@ fn test_path_dependency_under_member() {
workspace = "../ws"
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1572,6 +1623,7 @@ fn excluded_simple() {
[package]
name = "ws"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1598,6 +1650,7 @@ fn exclude_members_preferred() {
[package]
name = "ws"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1629,6 +1682,7 @@ fn exclude_but_also_depend() {
[package]
name = "ws"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1752,6 +1806,7 @@ fn glob_syntax() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1766,6 +1821,7 @@ fn glob_syntax() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../.."
"#,
@@ -1777,6 +1833,7 @@ fn glob_syntax() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../.."
"#,
@@ -1788,6 +1845,7 @@ fn glob_syntax() {
[package]
name = "qux"
version = "0.1.0"
+ edition = "2015"
authors = []
"#,
)
@@ -1824,6 +1882,7 @@ fn glob_syntax_2() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1835,6 +1894,7 @@ fn glob_syntax_2() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../.."
"#)
@@ -1843,6 +1903,7 @@ fn glob_syntax_2() {
[package]
name = "baz"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = "../.."
"#)
@@ -1851,6 +1912,7 @@ fn glob_syntax_2() {
[package]
name = "qux"
version = "0.1.0"
+ edition = "2015"
authors = []
"#)
.file("crates/qux/src/main.rs", "fn main() {}");
@@ -1888,6 +1950,7 @@ fn glob_syntax_invalid_members() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -1939,6 +2002,7 @@ fn dep_used_with_separate_features() {
[package]
name = "feat_lib"
version = "0.1.0"
+ edition = "2015"
authors = []
[features]
@@ -1952,6 +2016,7 @@ fn dep_used_with_separate_features() {
[package]
name = "caller1"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -1966,6 +2031,7 @@ fn dep_used_with_separate_features() {
[package]
name = "caller2"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]
@@ -2059,6 +2125,7 @@ fn dont_recurse_out_of_cargo_home() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies.dep]
git = "{}"
@@ -2109,6 +2176,7 @@ fn cargo_home_at_root_works() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["a"]
@@ -2159,6 +2227,7 @@ fn relative_rustc() {
[package]
name = "lib"
version = "0.1.0"
+ edition = "2015"
[dependencies]
a = "0.1"
@@ -2266,6 +2335,7 @@ fn ws_warn_unused() {
[package]
name = "a"
version = "0.1.0"
+ edition = "2015"
{}
"#,
@@ -2305,6 +2375,7 @@ fn ws_warn_path() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
"#,
)
.file("a/src/lib.rs", "")
@@ -2325,6 +2396,7 @@ fn invalid_missing() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[dependencies]
x = { path = 'x' }
@@ -2365,6 +2437,7 @@ fn member_dep_missing() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
[workspace]
members = ["bar"]
@@ -2377,6 +2450,7 @@ fn member_dep_missing() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
[dependencies]
baz = { path = "baz" }
@@ -2421,6 +2495,7 @@ fn simple_primary_package_env_var() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[workspace]
@@ -2434,6 +2509,7 @@ fn simple_primary_package_env_var() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
workspace = ".."
"#,
@@ -2493,6 +2569,7 @@ fn ensure_correct_workspace_when_nested() {
[package]
name = "bar"
version = "0.1.0"
+ edition = "2015"
authors = []
"#,
)
@@ -2510,6 +2587,7 @@ fn ensure_correct_workspace_when_nested() {
[package]
name = "foo"
version = "0.1.0"
+ edition = "2015"
authors = []
[dependencies]