1 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
2 --> $DIR/manual_bits.rs:9:5
4 LL | size_of::<i8>() * 8;
5 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS`
7 = note: `-D clippy::manual-bits` implied by `-D warnings`
9 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
10 --> $DIR/manual_bits.rs:10:5
12 LL | size_of::<i16>() * 8;
13 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS`
15 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
16 --> $DIR/manual_bits.rs:11:5
18 LL | size_of::<i32>() * 8;
19 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS`
21 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
22 --> $DIR/manual_bits.rs:12:5
24 LL | size_of::<i64>() * 8;
25 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS`
27 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
28 --> $DIR/manual_bits.rs:13:5
30 LL | size_of::<i128>() * 8;
31 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS`
33 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
34 --> $DIR/manual_bits.rs:14:5
36 LL | size_of::<isize>() * 8;
37 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS`
39 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
40 --> $DIR/manual_bits.rs:16:5
42 LL | size_of::<u8>() * 8;
43 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS`
45 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
46 --> $DIR/manual_bits.rs:17:5
48 LL | size_of::<u16>() * 8;
49 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS`
51 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
52 --> $DIR/manual_bits.rs:18:5
54 LL | size_of::<u32>() * 8;
55 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS`
57 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
58 --> $DIR/manual_bits.rs:19:5
60 LL | size_of::<u64>() * 8;
61 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS`
63 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
64 --> $DIR/manual_bits.rs:20:5
66 LL | size_of::<u128>() * 8;
67 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS`
69 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
70 --> $DIR/manual_bits.rs:21:5
72 LL | size_of::<usize>() * 8;
73 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS`
75 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
76 --> $DIR/manual_bits.rs:23:5
78 LL | 8 * size_of::<i8>();
79 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS`
81 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
82 --> $DIR/manual_bits.rs:24:5
84 LL | 8 * size_of::<i16>();
85 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS`
87 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
88 --> $DIR/manual_bits.rs:25:5
90 LL | 8 * size_of::<i32>();
91 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS`
93 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
94 --> $DIR/manual_bits.rs:26:5
96 LL | 8 * size_of::<i64>();
97 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS`
99 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
100 --> $DIR/manual_bits.rs:27:5
102 LL | 8 * size_of::<i128>();
103 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS`
105 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
106 --> $DIR/manual_bits.rs:28:5
108 LL | 8 * size_of::<isize>();
109 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS`
111 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
112 --> $DIR/manual_bits.rs:30:5
114 LL | 8 * size_of::<u8>();
115 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS`
117 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
118 --> $DIR/manual_bits.rs:31:5
120 LL | 8 * size_of::<u16>();
121 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS`
123 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
124 --> $DIR/manual_bits.rs:32:5
126 LL | 8 * size_of::<u32>();
127 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS`
129 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
130 --> $DIR/manual_bits.rs:33:5
132 LL | 8 * size_of::<u64>();
133 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS`
135 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
136 --> $DIR/manual_bits.rs:34:5
138 LL | 8 * size_of::<u128>();
139 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS`
141 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
142 --> $DIR/manual_bits.rs:35:5
144 LL | 8 * size_of::<usize>();
145 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS`
147 error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
148 --> $DIR/manual_bits.rs:45:5
150 LL | size_of::<Word>() * 8;
151 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `Word::BITS`
153 error: aborting due to 25 previous errors