From 866ea144d9595579e8b5c3739d8d147d437004e5 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Wed, 28 Feb 2024 21:27:48 +0100 Subject: [PATCH] Silence problematic non_local_definitions behavior around references https://github.com/rust-lang/rust/issues/121621 https://github.com/rust-lang/rust/issues/120363 --- serde_with/tests/serde_as/map_tuple_list.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serde_with/tests/serde_as/map_tuple_list.rs b/serde_with/tests/serde_as/map_tuple_list.rs index 59b00d61..f0957b81 100644 --- a/serde_with/tests/serde_as/map_tuple_list.rs +++ b/serde_with/tests/serde_as/map_tuple_list.rs @@ -353,6 +353,8 @@ fn test_map_as_tuple_with_nested_complex_type() { ); } +// Problematic handling around fundamental types: https://github.com/rust-lang/rust/issues/121621 +#[allow(unknown_lints, non_local_definitions)] #[test] fn test_map_as_tuple_list_works_with_serializer_that_needs_length_to_serialize_sequence() { use serde::{