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