2023-03-19 04:29:32 -05:00
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:15:13
|
2023-03-19 04:29:32 -05:00
|
|
|
|
|
|
|
|
LL | let _ = s_i32.len() * size_of::<i32>(); // WARNING
|
2023-04-17 13:25:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
|
2023-03-19 04:29:32 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-slice-size-calculation` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:16:13
|
2023-03-19 04:29:32 -05:00
|
|
|
|
|
|
|
|
LL | let _ = size_of::<i32>() * s_i32.len(); // WARNING
|
2023-04-17 13:25:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
|
2023-03-19 04:29:32 -05:00
|
|
|
|
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:17:13
|
2023-03-19 04:29:32 -05:00
|
|
|
|
|
|
|
|
LL | let _ = size_of::<i32>() * s_i32.len() * 5; // WARNING
|
2023-04-17 13:25:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
|
2023-03-19 04:29:32 -05:00
|
|
|
|
2023-04-06 18:00:53 -05:00
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:21:13
|
2023-04-06 18:00:53 -05:00
|
|
|
|
|
|
|
|
LL | let _ = len * size_of::<i32>(); // WARNING
|
2023-04-17 13:25:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
|
2023-04-06 18:00:53 -05:00
|
|
|
|
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:22:13
|
2023-04-06 18:00:53 -05:00
|
|
|
|
|
|
|
|
LL | let _ = s_i32.len() * size; // WARNING
|
2023-04-17 13:25:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
|
2023-04-06 18:00:53 -05:00
|
|
|
|
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:23:13
|
2023-04-06 18:00:53 -05:00
|
|
|
|
|
|
|
|
LL | let _ = len * size; // WARNING
|
2023-04-17 13:25:42 -05:00
|
|
|
| ^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
|
2023-04-06 18:00:53 -05:00
|
|
|
|
2023-04-18 12:54:26 -05:00
|
|
|
error: manual slice size calculation
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/manual_slice_size_calculation.rs:25:13
|
2023-04-18 12:54:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = external!(&[1u64][..]).len() * size_of::<u64>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(external!(&[1u64][..]))`
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2023-03-19 04:29:32 -05:00
|
|
|
|