Skip to content

Commit 767f32d

Browse files
committed
Remove and_then_some
1 parent 00140f0 commit 767f32d

File tree

4 files changed

+0
-107
lines changed

4 files changed

+0
-107
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,6 @@ Released 2018-09-13
10881088
[`not_unsafe_ptr_arg_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
10891089
[`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
10901090
[`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
1091-
[`option_and_then_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_and_then_some
10921091
[`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
10931092
[`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
10941093
[`option_map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or

clippy_lints/src/and_then_some.rs

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

clippy_lints/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ mod consts;
145145
mod utils;
146146

147147
// begin lints modules, do not remove this comment, it’s used in `update_lints`
148-
pub mod and_then_some;
149148
pub mod approx_const;
150149
pub mod arithmetic;
151150
pub mod assertions_on_constants;
@@ -601,7 +600,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
601600
reg.register_late_lint_pass(box integer_division::IntegerDivision);
602601
reg.register_late_lint_pass(box inherent_to_string::InherentToString);
603602
reg.register_late_lint_pass(box trait_bounds::TraitBounds);
604-
reg.register_late_lint_pass(box and_then_some::AndThenSomeLint);
605603

606604
reg.register_lint_group("clippy::restriction", Some("clippy_restriction"), vec![
607605
arithmetic::FLOAT_ARITHMETIC,
@@ -687,7 +685,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
687685
]);
688686

689687
reg.register_lint_group("clippy::all", Some("clippy"), vec![
690-
and_then_some::OPTION_AND_THEN_SOME,
691688
approx_const::APPROX_CONSTANT,
692689
assertions_on_constants::ASSERTIONS_ON_CONSTANTS,
693690
assign_ops::ASSIGN_OP_PATTERN,
@@ -1007,7 +1004,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
10071004
]);
10081005

10091006
reg.register_lint_group("clippy::complexity", Some("clippy_complexity"), vec![
1010-
and_then_some::OPTION_AND_THEN_SOME,
10111007
assign_ops::MISREFACTORED_ASSIGN_OP,
10121008
attrs::DEPRECATED_CFG_ATTR,
10131009
booleans::NONMINIMAL_BOOL,

src/lintlist/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,13 +1316,6 @@ pub const ALL_LINTS: [Lint; 310] = [
13161316
deprecation: None,
13171317
module: "eq_op",
13181318
},
1319-
Lint {
1320-
name: "option_and_then_some",
1321-
group: "complexity",
1322-
desc: "using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`",
1323-
deprecation: None,
1324-
module: "and_then_some",
1325-
},
13261319
Lint {
13271320
name: "option_map_or_none",
13281321
group: "style",

0 commit comments

Comments
 (0)