From be1bc571c3558cf3920e77d5eb3f017aeeac637c Mon Sep 17 00:00:00 2001 From: Krishna Sai Veera Reddy Date: Sat, 8 Feb 2020 16:44:35 -0800 Subject: Add `option-env-unwrap` lint --- src/lintlist/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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", @@ -1498,6 +1498,13 @@ pub const ALL_LINTS: [Lint; 354] = [ deprecation: None, 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", -- cgit 1.4.1-3-g733a5