serde/test_suite/tests
David Tolnay f803b290f3
Ignore uninlined_format_args pedantic clippy lint false positive
Clippy's suggested fix is not valid in 2018 edition. The
serde_test_suite crate can't be updated to 2021 edition yet because CI
of the serde crate on old toolchains needs to be able to parse all
manifests in the workspace, even if serde_test_suite is not being
compiled in those builds.

    error: variables can be used directly in the `format!` string
        --> test_suite/tests/test_de.rs:2260:23
         |
    2260 |             Err(e) => panic!("tokens failed to deserialize: {}", e),
         |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
         = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
    help: change this to
         |
    2260 -             Err(e) => panic!("tokens failed to deserialize: {}", e),
    2260 +             Err(e) => panic!("tokens failed to deserialize: {e}"),
         |

    warning: unused variable: `e`
        --> test_suite/tests/test_de.rs:2260:17
         |
    2260 |             Err(e) => panic!("tokens failed to deserialize: {e}"),
         |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
         |
         = note: `#[warn(unused_variables)]` on by default

    warning: panic message contains an unused formatting placeholder
        --> test_suite/tests/test_de.rs:2260:61
         |
    2260 |             Err(e) => panic!("tokens failed to deserialize: {e}"),
         |                                                             ^^^
         |
         = note: this message is not used as a format string when given without arguments, but will be in Rust 2021
         = note: `#[warn(non_fmt_panics)]` on by default
    help: add the missing argument
         |
    2260 |             Err(e) => panic!("tokens failed to deserialize: {e}", ...),
         |                                                                 +++++
    help: or add a "{}" format string to use the message literally
         |
    2260 |             Err(e) => panic!("{}", "tokens failed to deserialize: {e}"),
         |                              +++++
2022-10-07 21:46:25 -07:00
..
bytes Replace try! macro in test suite 2018-12-31 21:46:14 -05:00
expand Update macrotest to 1.0.9 and enable in CI 2022-06-20 03:40:49 -07:00
macros Ignore unused_macro_rules warning in test macros 2022-05-12 21:33:43 -07:00
ui Ui test changes for trybuild 1.0.66 2022-10-04 22:28:38 -07:00
unstable Update test suite to 2018 edition 2018-12-31 21:53:37 -05:00
compiletest.rs Ignore unused ignore attribute warning in some configurations 2022-04-24 16:01:22 -07:00
expandtest.rs Disable expandtest on miri 2022-04-24 16:01:52 -07:00
test_annotations.rs Resolve uninlined_format_args pedantic clippy lint in test suite 2022-10-07 21:45:03 -07:00
test_borrow.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_de_error.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_de.rs Ignore uninlined_format_args pedantic clippy lint false positive 2022-10-07 21:46:25 -07:00
test_gen.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_identifier.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_ignored_any.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_macros.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_remote.rs Update test suite to use tool attrs 2018-12-31 21:59:40 -05:00
test_roundtrip.rs Implement test suite seq macro without tt muncher 2022-01-20 19:40:58 -08:00
test_self.rs Enable pedantic lints on test suite in CI 2021-11-04 20:21:48 -07:00
test_ser.rs Serialize unsized RefCell, Mutex and RwLock 2022-09-22 09:57:55 +03:00
test_serde_path.rs Enable pedantic lints on test suite in CI 2021-11-04 20:21:48 -07:00
test_unstable.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_value.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00