2022-01-13 12:18:19 +00:00
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:14:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<i8>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-bits` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::manual_bits)]`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:15:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<i16>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:16:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<i32>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:17:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<i64>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:18:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<i128>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:19:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<isize>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:21:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<u8>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:22:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<u16>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:23:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<u32>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:24:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<u64>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:25:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<u128>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:26:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<usize>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:28:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<i8>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:29:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<i16>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:30:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<i32>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:31:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<i64>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:32:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<i128>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:33:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<isize>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:35:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<u8>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:36:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<u16>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:37:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<u32>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:38:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<u64>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:39:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<u128>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:40:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | 8 * size_of::<usize>();
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS as usize`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:50:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | size_of::<Word>() * 8;
|
2022-05-05 14:12:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `Word::BITS as usize`
|
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:54:18
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | let _: u32 = (size_of::<u128>() * 8) as u32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS`
|
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:55:18
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | let _: u32 = (size_of::<u128>() * 8).try_into().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS`
|
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:56:13
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | let _ = (size_of::<u128>() * 8).pow(5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(u128::BITS as usize)`
|
|
|
|
|
|
|
|
error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/manual_bits.rs:57:14
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
|
LL | let _ = &(size_of::<u128>() * 8);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(u128::BITS as usize)`
|
2022-01-13 12:18:19 +00:00
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
error: aborting due to 29 previous errors
|
2022-01-13 12:18:19 +00:00
|
|
|
|