|
| 1 | +error: used `assert_eq!` with a literal bool |
| 2 | + --> $DIR/bool_assert_comparison.rs:16:5 |
| 3 | + | |
| 4 | +LL | assert_eq!("a".is_empty(), false); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 6 | + | |
| 7 | + = note: `-D clippy::bool-assert-comparison` implied by `-D warnings` |
| 8 | + |
| 9 | +error: used `assert_eq!` with a literal bool |
| 10 | + --> $DIR/bool_assert_comparison.rs:17:5 |
| 11 | + | |
| 12 | +LL | assert_eq!("".is_empty(), true); |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 14 | + |
| 15 | +error: used `assert_eq!` with a literal bool |
| 16 | + --> $DIR/bool_assert_comparison.rs:18:5 |
| 17 | + | |
| 18 | +LL | assert_eq!(true, "".is_empty()); |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 20 | + |
| 21 | +error: used `assert_ne!` with a literal bool |
| 22 | + --> $DIR/bool_assert_comparison.rs:24:5 |
| 23 | + | |
| 24 | +LL | assert_ne!("a".is_empty(), false); |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 26 | + |
| 27 | +error: used `assert_ne!` with a literal bool |
| 28 | + --> $DIR/bool_assert_comparison.rs:25:5 |
| 29 | + | |
| 30 | +LL | assert_ne!("".is_empty(), true); |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 32 | + |
| 33 | +error: used `assert_ne!` with a literal bool |
| 34 | + --> $DIR/bool_assert_comparison.rs:26:5 |
| 35 | + | |
| 36 | +LL | assert_ne!(true, "".is_empty()); |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 38 | + |
| 39 | +error: used `debug_assert_eq!` with a literal bool |
| 40 | + --> $DIR/bool_assert_comparison.rs:32:5 |
| 41 | + | |
| 42 | +LL | debug_assert_eq!("a".is_empty(), false); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 44 | + |
| 45 | +error: used `debug_assert_eq!` with a literal bool |
| 46 | + --> $DIR/bool_assert_comparison.rs:33:5 |
| 47 | + | |
| 48 | +LL | debug_assert_eq!("".is_empty(), true); |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 50 | + |
| 51 | +error: used `debug_assert_eq!` with a literal bool |
| 52 | + --> $DIR/bool_assert_comparison.rs:34:5 |
| 53 | + | |
| 54 | +LL | debug_assert_eq!(true, "".is_empty()); |
| 55 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 56 | + |
| 57 | +error: used `debug_assert_ne!` with a literal bool |
| 58 | + --> $DIR/bool_assert_comparison.rs:40:5 |
| 59 | + | |
| 60 | +LL | debug_assert_ne!("a".is_empty(), false); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 62 | + |
| 63 | +error: used `debug_assert_ne!` with a literal bool |
| 64 | + --> $DIR/bool_assert_comparison.rs:41:5 |
| 65 | + | |
| 66 | +LL | debug_assert_ne!("".is_empty(), true); |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 68 | + |
| 69 | +error: used `debug_assert_ne!` with a literal bool |
| 70 | + --> $DIR/bool_assert_comparison.rs:42:5 |
| 71 | + | |
| 72 | +LL | debug_assert_ne!(true, "".is_empty()); |
| 73 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 74 | + |
| 75 | +error: used `assert_eq!` with a literal bool |
| 76 | + --> $DIR/bool_assert_comparison.rs:50:5 |
| 77 | + | |
| 78 | +LL | assert_eq!("a".is_empty(), false, "tadam {}", 1); |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 80 | + |
| 81 | +error: used `assert_eq!` with a literal bool |
| 82 | + --> $DIR/bool_assert_comparison.rs:51:5 |
| 83 | + | |
| 84 | +LL | assert_eq!("a".is_empty(), false, "tadam {}", true); |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 86 | + |
| 87 | +error: used `assert_eq!` with a literal bool |
| 88 | + --> $DIR/bool_assert_comparison.rs:52:5 |
| 89 | + | |
| 90 | +LL | assert_eq!(false, "a".is_empty(), "tadam {}", true); |
| 91 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 92 | + |
| 93 | +error: used `debug_assert_eq!` with a literal bool |
| 94 | + --> $DIR/bool_assert_comparison.rs:56:5 |
| 95 | + | |
| 96 | +LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1); |
| 97 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 98 | + |
| 99 | +error: used `debug_assert_eq!` with a literal bool |
| 100 | + --> $DIR/bool_assert_comparison.rs:57:5 |
| 101 | + | |
| 102 | +LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true); |
| 103 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 104 | + |
| 105 | +error: used `debug_assert_eq!` with a literal bool |
| 106 | + --> $DIR/bool_assert_comparison.rs:58:5 |
| 107 | + | |
| 108 | +LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true); |
| 109 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 110 | + |
| 111 | +error: aborting due to 18 previous errors |
| 112 | + |
0 commit comments