Merge pull request #2794 from dtolnay/neverread

Temporarily ignore collection_is_never_read on FlattenSkipDeserializing
This commit is contained in:
David Tolnay 2024-08-11 00:05:31 -07:00 committed by GitHub
commit 84c7419652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -720,11 +720,14 @@ fn test_gen() {
flat: StdOption<T>,
}
#[derive(Serialize, Deserialize)]
pub struct FlattenSkipDeserializing<T> {
#[serde(flatten, skip_deserializing)]
flat: T,
}
#[allow(clippy::collection_is_never_read)] // FIXME
const _: () = {
#[derive(Serialize, Deserialize)]
pub struct FlattenSkipDeserializing<T> {
#[serde(flatten, skip_deserializing)]
flat: T,
}
};
#[derive(Serialize, Deserialize)]
#[serde(untagged)]