blob: a8524fe66bce7a875a8a3dfe3790e0e6ae8c4b55 [file]
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:20:5
|
LL | assert!(vecdeque.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::assert-is-empty` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assert_is_empty)]`
help: use `assert_eq!` to show the value on failure
|
LL - assert!(vecdeque.is_empty());
LL + assert_eq!(vecdeque, VecDeque::new());
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:22:5
|
LL | assert!(!vecdeque.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!vecdeque.is_empty());
LL + assert_ne!(vecdeque, VecDeque::new());
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:28:5
|
LL | assert!(vec.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(vec.is_empty());
LL + assert_eq!(vec, [] as [i32; 0]);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:30:5
|
LL | assert!(!vec.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!vec.is_empty());
LL + assert_ne!(vec, [] as [i32; 0]);
|
error: used `debug_assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:32:5
|
LL | debug_assert!(vec.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `debug_assert_eq!` to show the value on failure
|
LL - debug_assert!(vec.is_empty());
LL + debug_assert_eq!(vec, [] as [i32; 0]);
|
error: used `debug_assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:34:5
|
LL | debug_assert!(!vec.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `debug_assert_ne!` to show the value on failure
|
LL - debug_assert!(!vec.is_empty());
LL + debug_assert_ne!(vec, [] as [i32; 0]);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:38:5
|
LL | assert!(vec_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(vec_ref.is_empty());
LL + assert_eq!(vec_ref.as_slice(), []);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:40:5
|
LL | assert!(!vec_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!vec_ref.is_empty());
LL + assert_ne!(vec_ref.as_slice(), []);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:44:5
|
LL | assert!(vec_mut_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(vec_mut_ref.is_empty());
LL + assert_eq!(vec_mut_ref.as_slice(), []);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:48:5
|
LL | assert!(slice.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(slice.is_empty());
LL + assert_eq!(slice, []);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:50:5
|
LL | assert!(!slice.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!slice.is_empty());
LL + assert_ne!(slice, []);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:54:5
|
LL | assert!(array.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(array.is_empty());
LL + assert_eq!(array.as_slice(), []);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:56:5
|
LL | assert!(!array.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!array.is_empty());
LL + assert_ne!(array.as_slice(), []);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:60:5
|
LL | assert!(array_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(array_ref.is_empty());
LL + assert_eq!(array_ref.as_slice(), []);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:64:5
|
LL | assert!(string.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(string.is_empty());
LL + assert_eq!(string, "");
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:66:5
|
LL | assert!(!string.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!string.is_empty());
LL + assert_ne!(string, "");
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:70:5
|
LL | assert!(str_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(str_ref.is_empty());
LL + assert_eq!(str_ref, "");
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:72:5
|
LL | assert!(!str_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!str_ref.is_empty());
LL + assert_ne!(str_ref, "");
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:84:5
|
LL | assert!(!items.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!items.is_empty());
LL + assert_ne!(items, [] as [&str; 0]);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:136:5
|
LL | assert!(vec_deque.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(vec_deque.is_empty());
LL + assert_eq!(vec_deque, VecDeque::new());
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:138:5
|
LL | assert!(!vec_deque.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!vec_deque.is_empty());
LL + assert_ne!(vec_deque, VecDeque::new());
|
error: used `debug_assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:141:5
|
LL | debug_assert!(vec_deque.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `debug_assert_eq!` to show the value on failure
|
LL - debug_assert!(vec_deque.is_empty());
LL + debug_assert_eq!(vec_deque, VecDeque::new());
|
error: used `debug_assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:143:5
|
LL | debug_assert!(!vec_deque.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `debug_assert_ne!` to show the value on failure
|
LL - debug_assert!(!vec_deque.is_empty());
LL + debug_assert_ne!(vec_deque, VecDeque::new());
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:153:9
|
LL | assert!(heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(heap.is_empty());
LL + assert_eq!(heap.as_slice(), [] as [i32; 0]);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:155:9
|
LL | assert!(!heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!heap.is_empty());
LL + assert_ne!(heap.as_slice(), [] as [i32; 0]);
|
error: used `debug_assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:157:9
|
LL | debug_assert!(heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `debug_assert_eq!` to show the value on failure
|
LL - debug_assert!(heap.is_empty());
LL + debug_assert_eq!(heap.as_slice(), [] as [i32; 0]);
|
error: used `debug_assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:159:9
|
LL | debug_assert!(!heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `debug_assert_ne!` to show the value on failure
|
LL - debug_assert!(!heap.is_empty());
LL + debug_assert_ne!(heap.as_slice(), [] as [i32; 0]);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:173:9
|
LL | assert!(heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(heap.is_empty());
LL + assert_eq!(heap.as_slice(), [] as [T; 0]);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:178:9
|
LL | assert!(heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(heap.is_empty());
LL + assert_eq!(heap.as_slice(), [] as [T; 0]);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:183:9
|
LL | assert!(heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(heap.is_empty());
LL + assert_eq!(heap.as_slice(), [] as [i32; 0]);
|
error: used `assert!` to check that a value is empty
--> tests/ui/assert_is_empty.rs:187:9
|
LL | assert!(heap_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_eq!` to show the value on failure
|
LL - assert!(heap_ref.is_empty());
LL + assert_eq!(heap_ref.as_slice(), [] as [i32; 0]);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:191:9
|
LL | assert!(!heap_ref_ref.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!heap_ref_ref.is_empty());
LL + assert_ne!(heap_ref_ref.as_slice(), [] as [i32; 0]);
|
error: used `assert!` to check that a value is not empty
--> tests/ui/assert_is_empty.rs:195:9
|
LL | assert!(!heap.is_empty());
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `assert_ne!` to show the value on failure
|
LL - assert!(!heap.is_empty());
LL + assert_ne!(heap.as_slice(), [] as [i32; 0]);
|
error: aborting due to 33 previous errors