error: called `map(<f>).unwrap_or_default()` on an `Option` value
  --> tests/ui/manual_is_variant_and.rs:52:17
   |
LL |       let _ = opt.map(|x| x > 1)
   |  _________________^
...  |
LL | |         .unwrap_or_default();
   | |____________________________^ help: use: `is_some_and(|x| x > 1)`
   |
   = note: `-D clippy::manual-is-variant-and` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::manual_is_variant_and)]`

error: called `map(<f>).unwrap_or_default()` on an `Option` value
  --> tests/ui/manual_is_variant_and.rs:57:17
   |
LL |       let _ = opt.map(|x| {
   |  _________________^
LL | |
LL | |         x > 1
LL | |     }
LL | |     ).unwrap_or_default();
   | |_________________________^
   |
help: use
   |
LL ~     let _ = opt.is_some_and(|x| {
LL +
LL +         x > 1
LL ~     });
   |

error: called `map(<f>).unwrap_or_default()` on an `Option` value
  --> tests/ui/manual_is_variant_and.rs:62:17
   |
LL |     let _ = opt.map(|x| x > 1).unwrap_or_default();
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `is_some_and(|x| x > 1)`

error: called `map(<f>).unwrap_or_default()` on an `Option` value
  --> tests/ui/manual_is_variant_and.rs:65:10
   |
LL |           .map(|x| x > 1)
   |  __________^
LL | |
LL | |         .unwrap_or_default();
   | |____________________________^ help: use: `is_some_and(|x| x > 1)`

error: called `.map() == Some()`
  --> tests/ui/manual_is_variant_and.rs:69:13
   |
LL |     let _ = Some(2).map(|x| x % 2 == 0) == Some(true);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `Some(2).is_some_and(|x| x % 2 == 0)`

error: called `.map() != Some()`
  --> tests/ui/manual_is_variant_and.rs:71:13
   |
LL |     let _ = Some(2).map(|x| x % 2 == 0) != Some(true);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `Some(2).is_none_or(|x| x % 2 != 0)`

error: called `.map() == Some()`
  --> tests/ui/manual_is_variant_and.rs:73:13
   |
LL |     let _ = Some(2).map(|x| x % 2 == 0) == some_true!();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `Some(2).is_some_and(|x| x % 2 == 0)`

error: called `.map() != Some()`
  --> tests/ui/manual_is_variant_and.rs:75:13
   |
LL |     let _ = Some(2).map(|x| x % 2 == 0) != some_false!();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `Some(2).is_none_or(|x| x % 2 == 0)`

error: called `map(<f>).unwrap_or_default()` on an `Option` value
  --> tests/ui/manual_is_variant_and.rs:82:18
   |
LL |     let _ = opt2.map(char::is_alphanumeric).unwrap_or_default(); // should lint
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `is_some_and(char::is_alphanumeric)`

error: called `map(<f>).unwrap_or_default()` on a `Result` value
  --> tests/ui/manual_is_variant_and.rs:100:17
   |
LL |       let _ = res.map(|x| {
   |  _________________^
LL | |
LL | |         x > 1
LL | |     }
LL | |     ).unwrap_or_default();
   | |_________________________^
   |
help: use
   |
LL ~     let _ = res.is_ok_and(|x| {
LL +
LL +         x > 1
LL ~     });
   |

error: called `map(<f>).unwrap_or_default()` on a `Result` value
  --> tests/ui/manual_is_variant_and.rs:105:17
   |
LL |       let _ = res.map(|x| x > 1)
   |  _________________^
LL | |
LL | |         .unwrap_or_default();
   | |____________________________^ help: use: `is_ok_and(|x| x > 1)`

error: called `.map() == Ok()`
  --> tests/ui/manual_is_variant_and.rs:109:13
   |
LL |     let _ = Ok::<usize, ()>(2).map(|x| x.is_multiple_of(2)) == Ok(true);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `Ok::<usize, ()>(2).is_ok_and(|x| x.is_multiple_of(2))`

error: called `.map() != Ok()`
  --> tests/ui/manual_is_variant_and.rs:111:13
   |
LL |     let _ = Ok::<usize, ()>(2).map(|x| x.is_multiple_of(2)) != Ok(true);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!Ok::<usize, ()>(2).is_ok_and(|x| x.is_multiple_of(2))`

error: called `.map() != Ok()`
  --> tests/ui/manual_is_variant_and.rs:113:13
   |
LL |     let _ = Ok::<usize, ()>(2).map(|x| x.is_multiple_of(2)) != Ok(true);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!Ok::<usize, ()>(2).is_ok_and(|x| x.is_multiple_of(2))`

error: called `map(<f>).unwrap_or_default()` on a `Result` value
  --> tests/ui/manual_is_variant_and.rs:120:18
   |
LL |     let _ = res2.map(char::is_alphanumeric).unwrap_or_default(); // should lint
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `is_ok_and(char::is_alphanumeric)`

error: called `.map() != Some()`
  --> tests/ui/manual_is_variant_and.rs:130:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) != Some(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `x.is_none_or(|b| !b.is_ascii_digit())`

error: called `.map() != Some()`
  --> tests/ui/manual_is_variant_and.rs:137:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) != Some(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `x.is_none_or(|b| b.is_ascii_digit())`

error: called `.map() == Some()`
  --> tests/ui/manual_is_variant_and.rs:144:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) == Some(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `x.is_some_and(|b| b.is_ascii_digit())`

error: called `.map() == Some()`
  --> tests/ui/manual_is_variant_and.rs:151:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) == Some(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `x.is_some_and(|b| !b.is_ascii_digit())`

error: called `.map() != Ok()`
  --> tests/ui/manual_is_variant_and.rs:159:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) != Ok(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!x.is_ok_and(|b| b.is_ascii_digit())`

error: called `.map() != Ok()`
  --> tests/ui/manual_is_variant_and.rs:166:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) != Ok(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!x.is_ok_and(|b| !b.is_ascii_digit())`

error: called `.map() == Ok()`
  --> tests/ui/manual_is_variant_and.rs:173:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) == Ok(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `x.is_ok_and(|b| b.is_ascii_digit())`

error: called `.map() == Ok()`
  --> tests/ui/manual_is_variant_and.rs:180:18
   |
LL |         let a1 = x.map(|b| b.is_ascii_digit()) == Ok(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `x.is_ok_and(|b| !b.is_ascii_digit())`

error: called `.map() == Some()`
  --> tests/ui/manual_is_variant_and.rs:193:18
   |
LL |         let a1 = b.map(iad) == Some(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.is_some_and(iad)`

error: called `.map() == Some()`
  --> tests/ui/manual_is_variant_and.rs:198:18
   |
LL |         let a1 = b.map(iad) == Some(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.is_some_and(|x| !iad(x))`

error: called `.map() != Some()`
  --> tests/ui/manual_is_variant_and.rs:203:18
   |
LL |         let a1 = b.map(iad) != Some(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.is_none_or(|x| !iad(x))`

error: called `.map() != Some()`
  --> tests/ui/manual_is_variant_and.rs:208:18
   |
LL |         let a1 = b.map(iad) != Some(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.is_none_or(iad)`

error: called `.map() == Ok()`
  --> tests/ui/manual_is_variant_and.rs:215:18
   |
LL |         let a1 = b.map(iad) == Ok(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.is_ok_and(iad)`

error: called `.map() == Ok()`
  --> tests/ui/manual_is_variant_and.rs:220:18
   |
LL |         let a1 = b.map(iad) == Ok(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.is_ok_and(|x| !iad(x))`

error: called `.map() != Ok()`
  --> tests/ui/manual_is_variant_and.rs:225:18
   |
LL |         let a1 = b.map(iad) != Ok(true);
   |                  ^^^^^^^^^^^^^^^^^^^^^^ help: use: `!b.is_ok_and(iad)`

error: called `.map() != Ok()`
  --> tests/ui/manual_is_variant_and.rs:230:18
   |
LL |         let a1 = b.map(iad) != Ok(false);
   |                  ^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!b.is_ok_and(|x| !iad(x))`

error: manual implementation of `Option::is_none_or`
  --> tests/ui/manual_is_variant_and.rs:240:13
   |
LL |     let _ = opt.is_none() || opt.is_some_and(then_fn);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `opt.is_none_or(then_fn)`

error: manual implementation of `Option::is_none_or`
  --> tests/ui/manual_is_variant_and.rs:243:13
   |
LL |     let _ = opt.is_some_and(then_fn) || opt.is_none();
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `opt.is_none_or(then_fn)`

error: manual implementation of `Option::is_some_and`
  --> tests/ui/manual_is_variant_and.rs:259:5
   |
LL |     opt.filter(|x| condition(x)).is_some();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `opt.as_ref().is_some_and(|x| condition(x))`

error: manual implementation of `Option::is_none_or`
  --> tests/ui/manual_is_variant_and.rs:261:5
   |
LL |     opt.filter(|x| condition(x)).is_none();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `opt.as_ref().is_none_or(|x| !condition(x))`

error: aborting due to 35 previous errors

