summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/manual_slice_size_calculation.stderr
blob: 4a24fc60a0fafcad4e0ddbaba374777e33a554a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:11:13
   |
LL |     let _ = s_i32.len() * size_of::<i32>(); // WARNING
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using std::mem::size_of_value instead
   = note: `-D clippy::manual-slice-size-calculation` implied by `-D warnings`

error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:12:13
   |
LL |     let _ = size_of::<i32>() * s_i32.len(); // WARNING
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using std::mem::size_of_value instead

error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:13:13
   |
LL |     let _ = size_of::<i32>() * s_i32.len() * 5; // WARNING
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using std::mem::size_of_value instead

error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:17:13
   |
LL |     let _ = len * size_of::<i32>(); // WARNING
   |             ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using std::mem::size_of_value instead

error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:18:13
   |
LL |     let _ = s_i32.len() * size; // WARNING
   |             ^^^^^^^^^^^^^^^^^^
   |
   = help: consider using std::mem::size_of_value instead

error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:19:13
   |
LL |     let _ = len * size; // WARNING
   |             ^^^^^^^^^^
   |
   = help: consider using std::mem::size_of_value instead

error: aborting due to 6 previous errors