2 Checks for deriving `serde::Deserialize` on a type that
3 has methods using `unsafe`.
6 Deriving `serde::Deserialize` will create a constructor
7 that may violate invariants hold by another constructor.
11 use serde::Deserialize;
13 #[derive(Deserialize)]
19 pub fn new() -> Self {
23 pub unsafe fn parts() -> (&str, &str) {
24 // assumes invariants hold