2021-04-22 04:31:13 -05:00
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:87:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!("a".is_empty(), false);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::bool_assert_comparison)]`
|
2023-01-27 14:09:08 -06:00
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!("a".is_empty(), false);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!"a".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:88:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!("".is_empty(), true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!("".is_empty(), true);
|
|
|
|
LL + assert!("".is_empty());
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:89:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!(true, "".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!(true, "".is_empty());
|
|
|
|
LL + assert!("".is_empty());
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:94:5
|
2021-09-08 09:31:47 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!(b, true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!(b, true);
|
|
|
|
LL + assert!(b);
|
|
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
error: used `assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:97:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_ne!("a".is_empty(), false);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_ne!("a".is_empty(), false);
|
|
|
|
LL + assert!("a".is_empty());
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:98:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_ne!("".is_empty(), true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_ne!("".is_empty(), true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!"".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:99:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_ne!(true, "".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_ne!(true, "".is_empty());
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!"".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
error: used `assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:104:5
|
2021-09-08 09:31:47 -05:00
|
|
|
|
|
|
|
|
LL | assert_ne!(b, true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_ne!(b, true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!b);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:107:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("a".is_empty(), false);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!("a".is_empty(), false);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!"a".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:108:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("".is_empty(), true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!("".is_empty(), true);
|
|
|
|
LL + debug_assert!("".is_empty());
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:109:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(true, "".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!(true, "".is_empty());
|
|
|
|
LL + debug_assert!("".is_empty());
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:114:5
|
2021-09-08 09:31:47 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(b, true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!(b, true);
|
|
|
|
LL + debug_assert!(b);
|
|
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:117:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!("a".is_empty(), false);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_ne!("a".is_empty(), false);
|
|
|
|
LL + debug_assert!("a".is_empty());
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:118:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!("".is_empty(), true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_ne!("".is_empty(), true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!"".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:119:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(true, "".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_ne!(true, "".is_empty());
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!"".is_empty());
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
error: used `debug_assert_ne!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:124:5
|
2021-09-08 09:31:47 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(b, true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_ne!(b, true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!b);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-09-08 09:31:47 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:129:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!"a".is_empty(), "tadam {}", 1);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:130:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!("a".is_empty(), false, "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!("a".is_empty(), false, "tadam {}", true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!"a".is_empty(), "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:131:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + assert!(!"a".is_empty(), "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:136:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!"a".is_empty(), "tadam {}", 1);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:137:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!"a".is_empty(), "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:138:5
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
2023-02-10 07:01:19 -06:00
|
|
|
LL + debug_assert!(!"a".is_empty(), "tadam {}", true);
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:141:5
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
|
|
|
LL | assert_eq!(a!(), true);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!(a!(), true);
|
|
|
|
LL + assert!(a!());
|
|
|
|
|
|
|
|
|
|
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:142:5
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
|
|
|
LL | assert_eq!(true, b!());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `assert!(..)`
|
|
|
|
|
|
|
|
|
LL - assert_eq!(true, b!());
|
|
|
|
LL + assert!(b!());
|
|
|
|
|
|
|
|
|
|
|
|
|
error: used `debug_assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:146:5
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
|
|
|
LL | renamed!(b, true);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: replace it with `debug_assert!(..)`
|
|
|
|
|
|
|
|
|
LL - renamed!(b, true);
|
|
|
|
LL + debug_assert!(b);
|
|
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
|
2023-02-10 07:01:19 -06:00
|
|
|
error: used `assert_eq!` with a literal bool
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:160:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:161:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:162:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:163:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:165:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:166:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:167:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/bool_assert_comparison.rs:168:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
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: aborting due to 33 previous errors
|
2021-04-22 04:31:13 -05:00
|
|
|
|