fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 2 --> $DIR/manual_bits.rs:14:5 3 | 4LL | size_of::<i8>() * 8; 5 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS as usize` 6 | 7 = note: `-D clippy::manual-bits` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::manual_bits)]` 9 10error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 11 --> $DIR/manual_bits.rs:15:5 12 | 13LL | size_of::<i16>() * 8; 14 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS as usize` 15 16error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 17 --> $DIR/manual_bits.rs:16:5 18 | 19LL | size_of::<i32>() * 8; 20 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS as usize` 21 22error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 23 --> $DIR/manual_bits.rs:17:5 24 | 25LL | size_of::<i64>() * 8; 26 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS as usize` 27 28error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 29 --> $DIR/manual_bits.rs:18:5 30 | 31LL | size_of::<i128>() * 8; 32 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS as usize` 33 34error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 35 --> $DIR/manual_bits.rs:19:5 36 | 37LL | size_of::<isize>() * 8; 38 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS as usize` 39 40error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 41 --> $DIR/manual_bits.rs:21:5 42 | 43LL | size_of::<u8>() * 8; 44 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS as usize` 45 46error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 47 --> $DIR/manual_bits.rs:22:5 48 | 49LL | size_of::<u16>() * 8; 50 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS as usize` 51 52error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 53 --> $DIR/manual_bits.rs:23:5 54 | 55LL | size_of::<u32>() * 8; 56 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS as usize` 57 58error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 59 --> $DIR/manual_bits.rs:24:5 60 | 61LL | size_of::<u64>() * 8; 62 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS as usize` 63 64error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 65 --> $DIR/manual_bits.rs:25:5 66 | 67LL | size_of::<u128>() * 8; 68 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS as usize` 69 70error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 71 --> $DIR/manual_bits.rs:26:5 72 | 73LL | size_of::<usize>() * 8; 74 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS as usize` 75 76error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 77 --> $DIR/manual_bits.rs:28:5 78 | 79LL | 8 * size_of::<i8>(); 80 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `i8::BITS as usize` 81 82error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 83 --> $DIR/manual_bits.rs:29:5 84 | 85LL | 8 * size_of::<i16>(); 86 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i16::BITS as usize` 87 88error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 89 --> $DIR/manual_bits.rs:30:5 90 | 91LL | 8 * size_of::<i32>(); 92 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i32::BITS as usize` 93 94error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 95 --> $DIR/manual_bits.rs:31:5 96 | 97LL | 8 * size_of::<i64>(); 98 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `i64::BITS as usize` 99 100error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 101 --> $DIR/manual_bits.rs:32:5 102 | 103LL | 8 * size_of::<i128>(); 104 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `i128::BITS as usize` 105 106error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 107 --> $DIR/manual_bits.rs:33:5 108 | 109LL | 8 * size_of::<isize>(); 110 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `isize::BITS as usize` 111 112error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 113 --> $DIR/manual_bits.rs:35:5 114 | 115LL | 8 * size_of::<u8>(); 116 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `u8::BITS as usize` 117 118error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 119 --> $DIR/manual_bits.rs:36:5 120 | 121LL | 8 * size_of::<u16>(); 122 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u16::BITS as usize` 123 124error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 125 --> $DIR/manual_bits.rs:37:5 126 | 127LL | 8 * size_of::<u32>(); 128 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u32::BITS as usize` 129 130error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 131 --> $DIR/manual_bits.rs:38:5 132 | 133LL | 8 * size_of::<u64>(); 134 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `u64::BITS as usize` 135 136error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 137 --> $DIR/manual_bits.rs:39:5 138 | 139LL | 8 * size_of::<u128>(); 140 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS as usize` 141 142error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 143 --> $DIR/manual_bits.rs:40:5 144 | 145LL | 8 * size_of::<usize>(); 146 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `usize::BITS as usize` 147 148error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 149 --> $DIR/manual_bits.rs:50:5 150 | 151LL | size_of::<Word>() * 8; 152 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `Word::BITS as usize` 153 154error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 155 --> $DIR/manual_bits.rs:54:18 156 | 157LL | let _: u32 = (size_of::<u128>() * 8) as u32; 158 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS` 159 160error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 161 --> $DIR/manual_bits.rs:55:18 162 | 163LL | let _: u32 = (size_of::<u128>() * 8).try_into().unwrap(); 164 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `u128::BITS` 165 166error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 167 --> $DIR/manual_bits.rs:56:13 168 | 169LL | let _ = (size_of::<u128>() * 8).pow(5); 170 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(u128::BITS as usize)` 171 172error: usage of `mem::size_of::<T>()` to obtain the size of `T` in bits 173 --> $DIR/manual_bits.rs:57:14 174 | 175LL | let _ = &(size_of::<u128>() * 8); 176 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(u128::BITS as usize)` 177 178error: aborting due to 29 previous errors 179