Skip to content
Myr

Enable pedantic lints on test suite in CI

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 8f16ac0 · Browse files · 9 files+23 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+23 added−3 removed

  • tests:+21 added−1 removed
  • other:+2 added−2 removed

9 files+23 added−3 removed

modified:.github/workflows/ci.yml+2 added-2 removed
modified:test_suite/tests/test_annotations.rs+1 added
1 unmodified line
2 clippy::cast_lossless,3 clippy::from_over_into,4 // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/74225 clippy::nonstandard_macro_braces,6 clippy::too_many_lines,7 clippy::trivially_copy_pass_by_ref8)]910use serde::de::{self, MapAccess, Unexpected, Visitor};
2800 unmodified lines
modified:test_suite/tests/test_borrow.rs+2 added
1#![allow(clippy::items_after_statements, clippy::used_underscore_binding)]23use serde::{Deserialize, Deserializer};4use serde_test::{assert_de_tokens, assert_de_tokens_error, Token};56use std::borrow::Cow;
180 unmodified lines
modified:test_suite/tests/test_de.rs+2 added
1#![allow(2 clippy::decimal_literal_representation,3 clippy::empty_enum,4 clippy::manual_assert,5 clippy::needless_pass_by_value,6 clippy::unreadable_literal7)]8#![cfg_attr(feature = "unstable", feature(never_type))]9
1649 unmodified lines
modified:test_suite/tests/test_gen.rs+5 added
4 unmodified lines
5#![deny(warnings)]6#![allow(7 unknown_lints,8 mixed_script_confusables,9 clippy::items_after_statements,10 clippy::missing_errors_doc,11 clippy::missing_panics_doc,12 clippy::must_use_candidate,13 // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/742214 clippy::nonstandard_macro_braces,15 clippy::ptr_arg,16 clippy::too_many_lines,17 clippy::trivially_copy_pass_by_ref18)]1920use serde::de::DeserializeOwned;
871 unmodified lines
modified:test_suite/tests/test_macros.rs+5 added-1 removed
1#![deny(trivial_numeric_casts)]2#![allow(clippy::enum_variant_names, clippy::redundant_field_names)]2#![allow(3 clippy::enum_variant_names,4 clippy::redundant_field_names,5 clippy::too_many_lines6)]78mod bytes;910use serde::{Deserialize, Serialize};
1946 unmodified lines
modified:test_suite/tests/test_self.rs+2 added
1#![allow(clippy::used_underscore_binding)]23use serde::{Deserialize, Serialize};45#[test]6fn test_self() {
82 unmodified lines
modified:test_suite/tests/test_serde_path.rs+2 added
1#![allow(clippy::type_repetition_in_bounds)]23#[test]4fn test_gen_custom_serde() {5 #[derive(serde::Serialize, serde::Deserialize)]6 #[serde(crate = "fake_serde")]
36 unmodified lines
modified:test_suite/tests/test_value.rs+2 added
1#![allow(clippy::similar_names)]23use serde::de::value::{self, MapAccessDeserializer};4use serde::de::{IntoDeserializer, MapAccess, Visitor};5use serde::{Deserialize, Deserializer};6use serde_test::{assert_de_tokens, Token};
90 unmodified lines