diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2024-08-06 10:12:49 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2024-08-06 10:46:39 -0400 |
| commit | 4e57b2c46f6f0a6c19a563e36e2bc9158bddd7b6 (patch) | |
| tree | 69537bf9396e67d24ee3fc0cf6d5cc8ebde1665a /tests | |
| parent | c082bc2cb85313901ed3565fcd285592ed93df0f (diff) | |
| download | rust-4e57b2c46f6f0a6c19a563e36e2bc9158bddd7b6.tar.gz rust-4e57b2c46f6f0a6c19a563e36e2bc9158bddd7b6.zip | |
Use `-D warnings` instead of `deny-warnings` feature.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/check-fmt.rs | 1 | ||||
| -rw-r--r-- | tests/compile-test.rs | 1 | ||||
| -rw-r--r-- | tests/dogfood.rs | 1 | ||||
| -rw-r--r-- | tests/integration.rs | 1 | ||||
| -rw-r--r-- | tests/lint_message_convention.rs | 1 | ||||
| -rw-r--r-- | tests/missing-test-files.rs | 1 | ||||
| -rw-r--r-- | tests/versioncheck.rs | 1 | ||||
| -rw-r--r-- | tests/workspace_test/path_dep/Cargo.toml | 3 |
8 files changed, 3 insertions, 7 deletions
diff --git a/tests/check-fmt.rs b/tests/check-fmt.rs index e106583de4a..cd3fed896c2 100644 --- a/tests/check-fmt.rs +++ b/tests/check-fmt.rs @@ -1,4 +1,3 @@ -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] use std::path::PathBuf; diff --git a/tests/compile-test.rs b/tests/compile-test.rs index 5d480adc735..5ce9cde30af 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -1,5 +1,4 @@ #![feature(is_sorted)] -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] #![allow(unused_extern_crates)] diff --git a/tests/dogfood.rs b/tests/dogfood.rs index c8a761bf509..8d10d5e7161 100644 --- a/tests/dogfood.rs +++ b/tests/dogfood.rs @@ -3,7 +3,6 @@ //! //! See [Eating your own dog food](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) for context -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] use itertools::Itertools; diff --git a/tests/integration.rs b/tests/integration.rs index 77b7bb6a7bf..13cf36823c5 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -8,7 +8,6 @@ //! Clippy doesn't produce an ICE. Lint warnings are ignored by this test. #![cfg(feature = "integration")] -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] use std::env; diff --git a/tests/lint_message_convention.rs b/tests/lint_message_convention.rs index 6ce7e44474d..7ed1f485c1c 100644 --- a/tests/lint_message_convention.rs +++ b/tests/lint_message_convention.rs @@ -1,4 +1,3 @@ -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] use std::ffi::OsStr; diff --git a/tests/missing-test-files.rs b/tests/missing-test-files.rs index 141c11ddb47..a8225d037e8 100644 --- a/tests/missing-test-files.rs +++ b/tests/missing-test-files.rs @@ -1,4 +1,3 @@ -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] #![allow(clippy::assertions_on_constants)] #![feature(path_file_prefix)] diff --git a/tests/versioncheck.rs b/tests/versioncheck.rs index eba5405e67e..68328333937 100644 --- a/tests/versioncheck.rs +++ b/tests/versioncheck.rs @@ -1,4 +1,3 @@ -#![cfg_attr(feature = "deny-warnings", deny(warnings))] #![warn(rust_2018_idioms, unused_lifetimes)] #![allow(clippy::single_match_else)] diff --git a/tests/workspace_test/path_dep/Cargo.toml b/tests/workspace_test/path_dep/Cargo.toml index 85a91cd2dec..98b4fb7aa50 100644 --- a/tests/workspace_test/path_dep/Cargo.toml +++ b/tests/workspace_test/path_dep/Cargo.toml @@ -1,3 +1,6 @@ [package] name = "path_dep" version = "0.1.0" + +[features] +primary_package_test = [] |
