1- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
1+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
22 --> tests/ui/manual_bits.rs:14:5
33 |
44LL | size_of::<i8>() * 8;
@@ -7,169 +7,169 @@ LL | size_of::<i8>() * 8;
77 = note: `-D clippy::manual-bits` implied by `-D warnings`
88 = help: to override `-D warnings` add `#[allow(clippy::manual_bits)]`
99
10- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
10+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
1111 --> tests/ui/manual_bits.rs:16:5
1212 |
1313LL | size_of::<i16>() * 8;
1414 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS as usize`
1515
16- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
16+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
1717 --> tests/ui/manual_bits.rs:18:5
1818 |
1919LL | size_of::<i32>() * 8;
2020 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS as usize`
2121
22- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
22+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
2323 --> tests/ui/manual_bits.rs:20:5
2424 |
2525LL | size_of::<i64>() * 8;
2626 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS as usize`
2727
28- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
28+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
2929 --> tests/ui/manual_bits.rs:22:5
3030 |
3131LL | size_of::<i128>() * 8;
3232 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS as usize`
3333
34- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
34+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
3535 --> tests/ui/manual_bits.rs:24:5
3636 |
3737LL | size_of::<isize>() * 8;
3838 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS as usize`
3939
40- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
40+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
4141 --> tests/ui/manual_bits.rs:27:5
4242 |
4343LL | size_of::<u8>() * 8;
4444 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS as usize`
4545
46- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
46+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
4747 --> tests/ui/manual_bits.rs:29:5
4848 |
4949LL | size_of::<u16>() * 8;
5050 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS as usize`
5151
52- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
52+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
5353 --> tests/ui/manual_bits.rs:31:5
5454 |
5555LL | size_of::<u32>() * 8;
5656 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS as usize`
5757
58- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
58+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
5959 --> tests/ui/manual_bits.rs:33:5
6060 |
6161LL | size_of::<u64>() * 8;
6262 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS as usize`
6363
64- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
64+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
6565 --> tests/ui/manual_bits.rs:35:5
6666 |
6767LL | size_of::<u128>() * 8;
6868 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS as usize`
6969
70- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
70+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
7171 --> tests/ui/manual_bits.rs:37:5
7272 |
7373LL | size_of::<usize>() * 8;
7474 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS as usize`
7575
76- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
76+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
7777 --> tests/ui/manual_bits.rs:40:5
7878 |
7979LL | 8 * size_of::<i8>();
8080 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS as usize`
8181
82- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
82+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
8383 --> tests/ui/manual_bits.rs:42:5
8484 |
8585LL | 8 * size_of::<i16>();
8686 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS as usize`
8787
88- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
88+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
8989 --> tests/ui/manual_bits.rs:44:5
9090 |
9191LL | 8 * size_of::<i32>();
9292 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS as usize`
9393
94- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
94+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
9595 --> tests/ui/manual_bits.rs:46:5
9696 |
9797LL | 8 * size_of::<i64>();
9898 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS as usize`
9999
100- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
100+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
101101 --> tests/ui/manual_bits.rs:48:5
102102 |
103103LL | 8 * size_of::<i128>();
104104 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS as usize`
105105
106- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
106+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
107107 --> tests/ui/manual_bits.rs:50:5
108108 |
109109LL | 8 * size_of::<isize>();
110110 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS as usize`
111111
112- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
112+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
113113 --> tests/ui/manual_bits.rs:53:5
114114 |
115115LL | 8 * size_of::<u8>();
116116 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS as usize`
117117
118- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
118+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
119119 --> tests/ui/manual_bits.rs:55:5
120120 |
121121LL | 8 * size_of::<u16>();
122122 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS as usize`
123123
124- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
124+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
125125 --> tests/ui/manual_bits.rs:57:5
126126 |
127127LL | 8 * size_of::<u32>();
128128 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS as usize`
129129
130- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
130+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
131131 --> tests/ui/manual_bits.rs:59:5
132132 |
133133LL | 8 * size_of::<u64>();
134134 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS as usize`
135135
136- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
136+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
137137 --> tests/ui/manual_bits.rs:61:5
138138 |
139139LL | 8 * size_of::<u128>();
140140 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS as usize`
141141
142- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
142+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
143143 --> tests/ui/manual_bits.rs:63:5
144144 |
145145LL | 8 * size_of::<usize>();
146146 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS as usize`
147147
148- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
148+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
149149 --> tests/ui/manual_bits.rs:74:5
150150 |
151151LL | size_of::<Word>() * 8;
152152 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `Word::BITS as usize`
153153
154- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
154+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
155155 --> tests/ui/manual_bits.rs:79:18
156156 |
157157LL | let _: u32 = (size_of::<u128>() * 8) as u32;
158158 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS`
159159
160- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
160+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
161161 --> tests/ui/manual_bits.rs:81:18
162162 |
163163LL | let _: u32 = (size_of::<u128>() * 8).try_into().unwrap();
164164 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS`
165165
166- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
166+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
167167 --> tests/ui/manual_bits.rs:83:13
168168 |
169169LL | let _ = (size_of::<u128>() * 8).pow(5);
170170 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(u128::BITS as usize)`
171171
172- error: usage of `mem:: size_of::<T>()` to obtain the size of `T` in bits
172+ error: usage of `size_of::<T>()` to obtain the size of `T` in bits
173173 --> tests/ui/manual_bits.rs:85:14
174174 |
175175LL | let _ = &(size_of::<u128>() * 8);
0 commit comments