From f1caef11c4f0b740fdedbae4ef3db0c88074bbc7 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 18 Apr 2024 13:39:29 -0500 Subject: [PATCH] test: Move off of deprecated manifest fields --- tests/testsuite/bench.rs | 4 ++-- tests/testsuite/build.rs | 10 +++++----- tests/testsuite/cross_compile.rs | 4 ++-- tests/testsuite/proc_macro.rs | 2 +- tests/testsuite/profiles.rs | 2 +- tests/testsuite/run.rs | 4 ++-- tests/testsuite/test.rs | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/testsuite/bench.rs b/tests/testsuite/bench.rs index ea646b398..eb9c92c1e 100644 --- a/tests/testsuite/bench.rs +++ b/tests/testsuite/bench.rs @@ -853,7 +853,7 @@ fn bench_dylib() { [lib] name = "foo" - crate_type = ["dylib"] + crate-type = ["dylib"] [dependencies.bar] path = "bar" @@ -895,7 +895,7 @@ fn bench_dylib() { [lib] name = "bar" - crate_type = ["dylib"] + crate-type = ["dylib"] "#, ) .file("bar/src/lib.rs", "pub fn baz() {}") diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index daa605fdf..c1fb8cd04 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -1496,7 +1496,7 @@ fn cargo_default_env_metadata_env_var() { [lib] name = "bar" - crate_type = ["dylib"] + crate-type = ["dylib"] "#, ) .file("bar/src/lib.rs", "// hello") @@ -2089,7 +2089,7 @@ fn many_crate_types_old_style_lib_location() { [lib] name = "foo" - crate_type = ["rlib", "dylib"] + crate-type = ["rlib", "dylib"] "#, ) .file("src/foo.rs", "pub fn foo() {}") @@ -2123,7 +2123,7 @@ fn many_crate_types_correct() { [lib] name = "foo" - crate_type = ["rlib", "dylib"] + crate-type = ["rlib", "dylib"] "#, ) .file("src/lib.rs", "pub fn foo() {}") @@ -2151,7 +2151,7 @@ fn set_both_dylib_and_cdylib_crate_types() { [lib] name = "foo" - crate_type = ["cdylib", "dylib"] + crate-type = ["cdylib", "dylib"] "#, ) .file("src/lib.rs", "pub fn foo() {}") @@ -2521,7 +2521,7 @@ fn verbose_release_build_deps() { [lib] name = "foo" - crate_type = ["dylib", "rlib"] + crate-type = ["dylib", "rlib"] "#, ) .file("foo/src/lib.rs", "") diff --git a/tests/testsuite/cross_compile.rs b/tests/testsuite/cross_compile.rs index f55e59920..bcb0a4190 100644 --- a/tests/testsuite/cross_compile.rs +++ b/tests/testsuite/cross_compile.rs @@ -1175,7 +1175,7 @@ fn cross_test_dylib() { [lib] name = "foo" - crate_type = ["dylib"] + crate-type = ["dylib"] [dependencies.bar] path = "bar" @@ -1212,7 +1212,7 @@ fn cross_test_dylib() { [lib] name = "bar" - crate_type = ["dylib"] + crate-type = ["dylib"] "#, ) .file( diff --git a/tests/testsuite/proc_macro.rs b/tests/testsuite/proc_macro.rs index 1f6a378c1..a4d04f784 100644 --- a/tests/testsuite/proc_macro.rs +++ b/tests/testsuite/proc_macro.rs @@ -509,7 +509,7 @@ fn proc_macro_built_once() { edition = "2015" [lib] - proc_macro = true + proc-macro = true [features] a = [] diff --git a/tests/testsuite/profiles.rs b/tests/testsuite/profiles.rs index d04cdacd5..8348ffd03 100644 --- a/tests/testsuite/profiles.rs +++ b/tests/testsuite/profiles.rs @@ -203,7 +203,7 @@ fn top_level_overrides_deps() { [lib] name = "foo" - crate_type = ["dylib", "rlib"] + crate-type = ["dylib", "rlib"] "#, ) .file("foo/src/lib.rs", "") diff --git a/tests/testsuite/run.rs b/tests/testsuite/run.rs index ac7707985..15ca5591c 100644 --- a/tests/testsuite/run.rs +++ b/tests/testsuite/run.rs @@ -443,7 +443,7 @@ fn run_library_example() { authors = [] [[example]] name = "bar" - crate_type = ["lib"] + crate-type = ["lib"] "#, ) .file("src/lib.rs", "") @@ -468,7 +468,7 @@ fn run_bin_example() { edition = "2015" [[example]] name = "bar" - crate_type = ["bin"] + crate-type = ["bin"] "#, ) .file("src/lib.rs", "") diff --git a/tests/testsuite/test.rs b/tests/testsuite/test.rs index b0ca38670..a32cb6d0e 100644 --- a/tests/testsuite/test.rs +++ b/tests/testsuite/test.rs @@ -1330,7 +1330,7 @@ fn test_dylib() { [lib] name = "foo" - crate_type = ["dylib"] + crate-type = ["dylib"] [dependencies.bar] path = "bar" @@ -1367,7 +1367,7 @@ fn test_dylib() { [lib] name = "bar" - crate_type = ["dylib"] + crate-type = ["dylib"] "#, ) .file("bar/src/lib.rs", "pub fn baz() {}")