• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
2  --> $DIR/unsafe_derive_deserialize.rs:8:10
3   |
4LL | #[derive(Deserialize)]
5   |          ^^^^^^^^^^^
6   |
7   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
8   = note: `-D clippy::unsafe-derive-deserialize` implied by `-D warnings`
9   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
12  --> $DIR/unsafe_derive_deserialize.rs:16:10
13   |
14LL | #[derive(Deserialize)]
15   |          ^^^^^^^^^^^
16   |
17   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
18   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
19
20error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
21  --> $DIR/unsafe_derive_deserialize.rs:22:10
22   |
23LL | #[derive(Deserialize)]
24   |          ^^^^^^^^^^^
25   |
26   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
27   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
30  --> $DIR/unsafe_derive_deserialize.rs:30:10
31   |
32LL | #[derive(Deserialize)]
33   |          ^^^^^^^^^^^
34   |
35   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
36   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
37
38error: aborting due to 4 previous errors
39
40