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:
David Tolnay 2021-09-30 01:29:43 -04:00
parent dd3f590c41
commit f12db11b61
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 0 deletions

View File

@ -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)