about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2020-04-19 23:11:30 +0200
committerEduardo Broto <ebroto@tutanota.com>2020-04-19 23:26:17 +0200
commit00b4f2819fa4786bb54bd2c4091767f64268d528 (patch)
tree25da9d3bdba6a85fc40c0d9b00d5f6fb2ee0b34b /src
parent6dcc8d50381b561a87cdfb926c829434857e635f (diff)
downloadrust-00b4f2819fa4786bb54bd2c4091767f64268d528.tar.gz
rust-00b4f2819fa4786bb54bd2c4091767f64268d528.zip
Implement unsafe_derive_deserialize lint
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 213d054e403..c7c851a8032 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -2335,6 +2335,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         module: "literal_representation",
     },
     Lint {
+        name: "unsafe_derive_deserialize",
+        group: "correctness",
+        desc: "deriving `serde::Deserialize` on a type that has methods using `unsafe`",
+        deprecation: None,
+        module: "derive",
+    },
+    Lint {
         name: "unsafe_removed_from_name",
         group: "style",
         desc: "`unsafe` removed from API names on import",