about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unsafe_derive_deserialize.stderr
blob: 4b5dd6e61fcc0c1c495c4f3314fda78af8551987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
  --> tests/ui/unsafe_derive_deserialize.rs:8:10
   |
LL | #[derive(Deserialize)]
   |          ^^^^^^^^^^^
   |
   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
   = note: `-D clippy::unsafe-derive-deserialize` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unsafe_derive_deserialize)]`
   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
  --> tests/ui/unsafe_derive_deserialize.rs:17:10
   |
LL | #[derive(Deserialize)]
   |          ^^^^^^^^^^^
   |
   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
  --> tests/ui/unsafe_derive_deserialize.rs:24:10
   |
LL | #[derive(Deserialize)]
   |          ^^^^^^^^^^^
   |
   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
  --> tests/ui/unsafe_derive_deserialize.rs:33:10
   |
LL | #[derive(Deserialize)]
   |          ^^^^^^^^^^^
   |
   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
  --> tests/ui/unsafe_derive_deserialize.rs:104:14
   |
LL |     #[derive(serde::Deserialize)]
   |              ^^^^^^^^^^^^^^^^^^
   |
   = help: consider implementing `serde::Deserialize` manually. See https://serde.rs/impl-deserialize.html
   = note: this error originates in the derive macro `serde::Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors