2021-04-22 09:31:13 +00:00
|
|
|
error: used `assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:69:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!("a".is_empty(), false);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:70:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!("".is_empty(), true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:71:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!(true, "".is_empty());
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: used `assert_eq!` with a literal bool
|
|
|
|
--> $DIR/bool_assert_comparison.rs:76:5
|
|
|
|
|
|
|
|
|
LL | assert_eq!(b, true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-09-08 14:31:47 +00:00
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: used `assert_ne!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:79:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_ne!("a".is_empty(), false);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `assert_ne!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:80:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_ne!("".is_empty(), true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `assert_ne!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:81:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_ne!(true, "".is_empty());
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: used `assert_ne!` with a literal bool
|
|
|
|
--> $DIR/bool_assert_comparison.rs:86:5
|
|
|
|
|
|
|
|
|
LL | assert_ne!(b, true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-09-08 14:31:47 +00:00
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:89:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("a".is_empty(), false);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:90:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("".is_empty(), true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:91:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(true, "".is_empty());
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
|
|
|
--> $DIR/bool_assert_comparison.rs:96:5
|
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(b, true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-09-08 14:31:47 +00:00
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:99:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!("a".is_empty(), false);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:100:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!("".is_empty(), true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:101:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(true, "".is_empty());
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
|
|
|
--> $DIR/bool_assert_comparison.rs:106:5
|
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(b, true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-09-08 14:31:47 +00:00
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: used `assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:111:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:112:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!("a".is_empty(), false, "tadam {}", true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:113:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:118:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:119:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2021-09-08 14:31:47 +00:00
|
|
|
--> $DIR/bool_assert_comparison.rs:120:5
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: aborting due to 22 previous errors
|
2021-04-22 09:31:13 +00:00
|
|
|
|