mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
4698b366c4
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
|
|
--> $DIR/unsafe_derive_deserialize.rs:8:10
|
|
|
|
|
LL | #[derive(Deserialize)]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::unsafe-derive-deserialize` implied by `-D warnings`
|
|
= 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`
|
|
--> $DIR/unsafe_derive_deserialize.rs:16: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`
|
|
--> $DIR/unsafe_derive_deserialize.rs:22: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`
|
|
--> $DIR/unsafe_derive_deserialize.rs:30: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: aborting due to 4 previous errors
|
|
|