error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:95:5 | LL | assert_eq!("a".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::bool-assert-comparison` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::bool_assert_comparison)]` help: replace it with `assert!(..)` | LL - assert_eq!("a".is_empty(), false); LL + assert!(!"a".is_empty()); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:97:5 | LL | assert_eq!("".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!("".is_empty(), true); LL + assert!("".is_empty()); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:99:5 | LL | assert_eq!(true, "".is_empty()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(true, "".is_empty()); LL + assert!("".is_empty()); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:105:5 | LL | assert_eq!(b, true); | ^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(b, true); LL + assert!(!!b); | error: used `assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:109:5 | LL | assert_ne!("a".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_ne!("a".is_empty(), false); LL + assert!("a".is_empty()); | error: used `assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:111:5 | LL | assert_ne!("".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_ne!("".is_empty(), true); LL + assert!(!"".is_empty()); | error: used `assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:113:5 | LL | assert_ne!(true, "".is_empty()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_ne!(true, "".is_empty()); LL + assert!(!"".is_empty()); | error: used `assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:119:5 | LL | assert_ne!(b, true); | ^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_ne!(b, true); LL + assert!(!b); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:123:5 | LL | debug_assert_eq!("a".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!("a".is_empty(), false); LL + debug_assert!(!"a".is_empty()); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:125:5 | LL | debug_assert_eq!("".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!("".is_empty(), true); LL + debug_assert!("".is_empty()); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:127:5 | LL | debug_assert_eq!(true, "".is_empty()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!(true, "".is_empty()); LL + debug_assert!("".is_empty()); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:133:5 | LL | debug_assert_eq!(b, true); | ^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!(b, true); LL + debug_assert!(!!b); | error: used `debug_assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:137:5 | LL | debug_assert_ne!("a".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_ne!("a".is_empty(), false); LL + debug_assert!("a".is_empty()); | error: used `debug_assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:139:5 | LL | debug_assert_ne!("".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_ne!("".is_empty(), true); LL + debug_assert!(!"".is_empty()); | error: used `debug_assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:141:5 | LL | debug_assert_ne!(true, "".is_empty()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_ne!(true, "".is_empty()); LL + debug_assert!(!"".is_empty()); | error: used `debug_assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:147:5 | LL | debug_assert_ne!(b, true); | ^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_ne!(b, true); LL + debug_assert!(!b); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:153:5 | LL | assert_eq!("a".is_empty(), false, "tadam {}", 1); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!("a".is_empty(), false, "tadam {}", 1); LL + assert!(!"a".is_empty(), "tadam {}", 1); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:155:5 | LL | assert_eq!("a".is_empty(), false, "tadam {}", true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!("a".is_empty(), false, "tadam {}", true); LL + assert!(!"a".is_empty(), "tadam {}", true); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:157:5 | LL | assert_eq!(false, "a".is_empty(), "tadam {}", true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(false, "a".is_empty(), "tadam {}", true); LL + assert!(!"a".is_empty(), "tadam {}", true); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:163:5 | LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!("a".is_empty(), false, "tadam {}", 1); LL + debug_assert!(!"a".is_empty(), "tadam {}", 1); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:165:5 | LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!("a".is_empty(), false, "tadam {}", true); LL + debug_assert!(!"a".is_empty(), "tadam {}", true); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:167:5 | LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!(false, "a".is_empty(), "tadam {}", true); LL + debug_assert!(!"a".is_empty(), "tadam {}", true); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:171:5 | LL | assert_eq!(a!(), true); | ^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL | true ... LL | LL ~ assert!(a!()); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:173:5 | LL | assert_eq!(true, b!()); | ^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL | true ... LL | LL ~ assert!(b!()); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:178:5 | LL | renamed!(b, true); | ^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - renamed!(b, true); LL + debug_assert!(!!b); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:193:5 | LL | assert_eq!("".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!("".is_empty(), true); LL + assert!("".is_empty()); | error: used `assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:195:5 | LL | assert_ne!("".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_ne!("".is_empty(), false); LL + assert!("".is_empty()); | error: used `assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:197:5 | LL | assert_ne!("requires negation".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_ne!("requires negation".is_empty(), true); LL + assert!(!"requires negation".is_empty()); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:199:5 | LL | assert_eq!("requires negation".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!("requires negation".is_empty(), false); LL + assert!(!"requires negation".is_empty()); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:202:5 | LL | debug_assert_eq!("".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!("".is_empty(), true); LL + debug_assert!("".is_empty()); | error: used `debug_assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:204:5 | LL | debug_assert_ne!("".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_ne!("".is_empty(), false); LL + debug_assert!("".is_empty()); | error: used `debug_assert_ne!` with a literal bool --> tests/ui/bool_assert_comparison.rs:206:5 | LL | debug_assert_ne!("requires negation".is_empty(), true); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_ne!("requires negation".is_empty(), true); LL + debug_assert!(!"requires negation".is_empty()); | error: used `debug_assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:208:5 | LL | debug_assert_eq!("requires negation".is_empty(), false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `debug_assert!(..)` | LL - debug_assert_eq!("requires negation".is_empty(), false); LL + debug_assert!(!"requires negation".is_empty()); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:210:5 | LL | assert_eq!(!b, true); | ^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(!b, true); LL + assert!(!b); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:212:5 | LL | assert_eq!(!b, false); | ^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(!b, false); LL + assert!(!(!b)); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:214:5 | LL | assert_eq!(b + b, true); | ^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(b + b, true); LL + assert!(!!(b + b)); | error: used `assert_eq!` with a literal bool --> tests/ui/bool_assert_comparison.rs:216:5 | LL | assert_eq!(b + b, false); | ^^^^^^^^^^^^^^^^^^^^^^^^ | help: replace it with `assert!(..)` | LL - assert_eq!(b + b, false); LL + assert!(!(b + b)); | error: aborting due to 37 previous errors