From 874645e39459fcec07fc9e7888cdb6ac43cf5b0a Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Tue, 9 Jan 2024 21:49:33 +0800 Subject: [PATCH] test: add lints Signed-off-by: hi-rustin --- .../in/Cargo.toml | 2 ++ .../out/Cargo.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/in/Cargo.toml b/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/in/Cargo.toml index e05d879af..26a4849d7 100644 --- a/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/in/Cargo.toml +++ b/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/in/Cargo.toml @@ -15,6 +15,8 @@ include = ["foo"] license = "MIT OR Apache-2.0" publish = false repository = "foo" +[workspace.lints.rust] +unsafe_code = "forbid" [package] name = "foo" diff --git a/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/out/Cargo.toml b/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/out/Cargo.toml index e05d879af..26a4849d7 100644 --- a/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/out/Cargo.toml +++ b/tests/testsuite/cargo_new/not_inherit_workspace_package_table_if_not_members/out/Cargo.toml @@ -15,6 +15,8 @@ include = ["foo"] license = "MIT OR Apache-2.0" publish = false repository = "foo" +[workspace.lints.rust] +unsafe_code = "forbid" [package] name = "foo"