error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:30:5
   |
LL | /     if !a.is_empty() {
LL | |
LL | |         panic!("qaqaq{:?}", a);
LL | |     }
   | |_____^
   |
   = note: `-D clippy::manual-assert` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::manual_assert)]`
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(a.is_empty(), "qaqaq{:?}", a);
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:34:5
   |
LL | /     if !a.is_empty() {
LL | |
LL | |         panic!("qwqwq");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(a.is_empty(), "qwqwq");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:52:5
   |
LL | /     if b.is_empty() {
LL | |
LL | |         panic!("panic1");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(!b.is_empty(), "panic1");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:56:5
   |
LL | /     if b.is_empty() && a.is_empty() {
LL | |
LL | |         panic!("panic2");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(!(b.is_empty() && a.is_empty()), "panic2");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:60:5
   |
LL | /     if a.is_empty() && !b.is_empty() {
LL | |
LL | |         panic!("panic3");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(!(a.is_empty() && !b.is_empty()), "panic3");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:64:5
   |
LL | /     if b.is_empty() || a.is_empty() {
LL | |
LL | |         panic!("panic4");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(!(b.is_empty() || a.is_empty()), "panic4");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:68:5
   |
LL | /     if a.is_empty() || !b.is_empty() {
LL | |
LL | |         panic!("panic5");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(!(a.is_empty() || !b.is_empty()), "panic5");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:72:5
   |
LL | /     if a.is_empty() {
LL | |
LL | |         panic!("with expansion {}", one!())
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(!a.is_empty(), "with expansion {}", one!());
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:85:5
   |
LL | /     if a > 2 {
LL | |
LL | |         // comment
LL | |         /* this is a
...  |
LL | |         panic!("panic with comment") // comment after `panic!`
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     // comment
LL +     /* this is a
LL +             multiline
LL +             comment */
LL +     /// Doc comment
LL +     // comment after `panic!`
LL +     assert!(a <= 2, "panic with comment");
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:100:25
   |
LL |           const BAR: () = if N == 0 {
   |  _________________________^
LL | |
LL | |             panic!()
LL | |         };
   | |_________^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~         const BAR: () =
LL ~         assert!(N != 0, );
   |

error: only a `panic!` in `if`-then statement
  --> tests/ui/manual_assert.rs:114:5
   |
LL | /     if !is_x86_feature_detected!("ssse3") {
LL | |
LL | |         panic!("SSSE3 is not supported");
LL | |     }
   | |_____^
   |
help: replace `if`-then-`panic!` with `assert!`
   |
LL ~
LL +     assert!(is_x86_feature_detected!("ssse3"), "SSSE3 is not supported");
   |

error: aborting due to 11 previous errors

