Skip to content

Commit 408828c

Browse files
committed
Drop newly uplifted clippy::option_env_unwrap
1 parent 54db962 commit 408828c

File tree

9 files changed

+61
-178
lines changed

9 files changed

+61
-178
lines changed

src/tools/clippy/clippy_lints/src/declared_lints.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
495495
crate::operators::PTR_EQ_INFO,
496496
crate::operators::SELF_ASSIGNMENT_INFO,
497497
crate::operators::VERBOSE_BIT_MASK_INFO,
498-
crate::option_env_unwrap::OPTION_ENV_UNWRAP_INFO,
499498
crate::option_if_let_else::OPTION_IF_LET_ELSE_INFO,
500499
crate::overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL_INFO,
501500
crate::panic_in_result_fn::PANIC_IN_RESULT_FN_INFO,

src/tools/clippy/clippy_lints/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ mod nonstandard_macro_braces;
237237
mod octal_escapes;
238238
mod only_used_in_recursion;
239239
mod operators;
240-
mod option_env_unwrap;
241240
mod option_if_let_else;
242241
mod overflow_check_conditional;
243242
mod panic_in_result_fn;
@@ -811,7 +810,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
811810
max_fn_params_bools,
812811
))
813812
});
814-
store.register_early_pass(|| Box::new(option_env_unwrap::OptionEnvUnwrap));
815813
let warn_on_all_wildcard_imports = conf.warn_on_all_wildcard_imports;
816814
store.register_late_pass(move |_| Box::new(wildcard_imports::WildcardImports::new(warn_on_all_wildcard_imports)));
817815
store.register_late_pass(|_| Box::<redundant_pub_crate::RedundantPubCrate>::default());

src/tools/clippy/clippy_lints/src/option_env_unwrap.rs

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/tools/clippy/clippy_lints/src/renamed_lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ pub static RENAMED_LINTS: &[(&str, &str)] = &[
4949
("clippy::temporary_cstring_as_ptr", "temporary_cstring_as_ptr"),
5050
("clippy::unknown_clippy_lints", "unknown_lints"),
5151
("clippy::unused_label", "unused_labels"),
52+
("clippy::option_env_unwrap", "incorrect_option_env_unwraps"),
5253
];

src/tools/clippy/tests/ui/option_env_unwrap.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/tools/clippy/tests/ui/option_env_unwrap.stderr

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/tools/clippy/tests/ui/rename.fixed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#![allow(temporary_cstring_as_ptr)]
4646
#![allow(unknown_lints)]
4747
#![allow(unused_labels)]
48+
#![allow(option_env_unwrap)]
4849
#![warn(clippy::almost_complete_range)]
4950
#![warn(clippy::disallowed_names)]
5051
#![warn(clippy::blocks_in_if_conditions)]
@@ -92,5 +93,6 @@
9293
#![warn(temporary_cstring_as_ptr)]
9394
#![warn(unknown_lints)]
9495
#![warn(unused_labels)]
96+
#![warn(incorrect_option_env_unwraps)]
9597

9698
fn main() {}

src/tools/clippy/tests/ui/rename.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#![allow(temporary_cstring_as_ptr)]
4646
#![allow(unknown_lints)]
4747
#![allow(unused_labels)]
48+
#![allow(option_env_unwrap)]
4849
#![warn(clippy::almost_complete_letter_range)]
4950
#![warn(clippy::blacklisted_name)]
5051
#![warn(clippy::block_in_if_condition_expr)]
@@ -92,5 +93,6 @@
9293
#![warn(clippy::temporary_cstring_as_ptr)]
9394
#![warn(clippy::unknown_clippy_lints)]
9495
#![warn(clippy::unused_label)]
96+
#![warn(clippy::incorrect_option_env_unwraps)]
9597

9698
fn main() {}

0 commit comments

Comments
 (0)