mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
1b6c91628e
Adding `#![feature(lint_reasons)]` to the top of the file also changed the line numbers in the expected error output.
40 lines
1.9 KiB
Text
40 lines
1.9 KiB
Text
error: you are deriving `serde::Deserialize` on a type that has methods using `unsafe`
|
|
--> tests/ui/unsafe_derive_deserialize.rs:9: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:18: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:25: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:34: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
|
|
|