From f12db11b6151aeede44eee4896a5e0ae65980b0d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 30 Sep 2021 01:29:43 -0400 Subject: [PATCH] Ignore renamed_and_removed_lints clippy warning We run our test suite as far back as rustc 1.20, which does not support the modern tool attribute syntax. warning: lint name `cast_lossless` is deprecated and may not have an effect in the future. --> tests/test.rs:3:11 | 3 | allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix) | ^^^^^^^^^^^^^ help: change it to: `clippy::cast_lossless` | = note: `#[warn(renamed_and_removed_lints)]` on by default warning: lint name `string_lit_as_bytes` is deprecated and may not have an effect in the future. --> tests/test.rs:3:26 | 3 | allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix) | ^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::string_lit_as_bytes` warning: lint name `unseparated_literal_suffix` is deprecated and may not have an effect in the future. --> tests/test.rs:3:47 | 3 | allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::unseparated_literal_suffix` --- tests/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test.rs b/tests/test.rs index da33b5a..088065b 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1,3 +1,4 @@ +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr( feature = "cargo-clippy", allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix)