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`
This commit is contained in:
parent
dd3f590c41
commit
f12db11b61
|
@ -1,3 +1,4 @@
|
||||||
|
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "cargo-clippy",
|
feature = "cargo-clippy",
|
||||||
allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix)
|
allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix)
|
||||||
|
|
Loading…
Reference in New Issue