about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKrishna Sai Veera Reddy <veerareddy@email.arizona.edu>2020-02-08 16:44:35 -0800
committerKrishna Sai Veera Reddy <veerareddy@email.arizona.edu>2020-02-08 16:44:35 -0800
commitbe1bc571c3558cf3920e77d5eb3f017aeeac637c (patch)
treea1ed184cd7cf23f5d65458bcf44d41d9b250a756 /src
parent4ad6fb3fb044606ad21facc1b5c9c2d518453ad5 (diff)
downloadrust-be1bc571c3558cf3920e77d5eb3f017aeeac637c.tar.gz
rust-be1bc571c3558cf3920e77d5eb3f017aeeac637c.zip
Add `option-env-unwrap` lint
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index f725ce2563f..d4f94a9b60a 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -6,7 +6,7 @@ pub use lint::Lint;
 pub use lint::LINT_LEVELS;
 
 // begin lint list, do not remove this comment, it’s used in `update_lints`
-pub const ALL_LINTS: [Lint; 354] = [
+pub const ALL_LINTS: [Lint; 355] = [
     Lint {
         name: "absurd_extreme_comparisons",
         group: "correctness",
@@ -1499,6 +1499,13 @@ pub const ALL_LINTS: [Lint; 354] = [
         module: "methods",
     },
     Lint {
+        name: "option_env_unwrap",
+        group: "correctness",
+        desc: "using `option_env!(...).unwrap()` to get environment variable",
+        deprecation: None,
+        module: "option_env_unwrap",
+    },
+    Lint {
         name: "option_expect_used",
         group: "restriction",
         desc: "using `Option.expect()`, which might be better handled",