fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error: any use of this value will cause an error 2 --> $DIR/const-int-unchecked.rs:14:29 3 | 4LL | const SHL_U8: u8 = unsafe { intrinsics::unchecked_shl(5_u8, 8) }; 5 | ----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 6 | | 7 | Overflowing shift by 8 in `unchecked_shl` 8 | 9 = note: `#[deny(const_err)]` on by default 10 11error: any use of this value will cause an error 12 --> $DIR/const-int-unchecked.rs:16:31 13 | 14LL | const SHL_U16: u16 = unsafe { intrinsics::unchecked_shl(5_u16, 16) }; 15 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 16 | | 17 | Overflowing shift by 16 in `unchecked_shl` 18 19error: any use of this value will cause an error 20 --> $DIR/const-int-unchecked.rs:18:31 21 | 22LL | const SHL_U32: u32 = unsafe { intrinsics::unchecked_shl(5_u32, 32) }; 23 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 24 | | 25 | Overflowing shift by 32 in `unchecked_shl` 26 27error: any use of this value will cause an error 28 --> $DIR/const-int-unchecked.rs:20:31 29 | 30LL | const SHL_U64: u64 = unsafe { intrinsics::unchecked_shl(5_u64, 64) }; 31 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 32 | | 33 | Overflowing shift by 64 in `unchecked_shl` 34 35error: any use of this value will cause an error 36 --> $DIR/const-int-unchecked.rs:22:33 37 | 38LL | const SHL_U128: u128 = unsafe { intrinsics::unchecked_shl(5_u128, 128) }; 39 | --------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 40 | | 41 | Overflowing shift by 128 in `unchecked_shl` 42 43error: any use of this value will cause an error 44 --> $DIR/const-int-unchecked.rs:27:29 45 | 46LL | const SHL_I8: i8 = unsafe { intrinsics::unchecked_shl(5_i8, 8) }; 47 | ----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 48 | | 49 | Overflowing shift by 8 in `unchecked_shl` 50 51error: any use of this value will cause an error 52 --> $DIR/const-int-unchecked.rs:29:31 53 | 54LL | const SHL_I16: i16 = unsafe { intrinsics::unchecked_shl(5_16, 16) }; 55 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 56 | | 57 | Overflowing shift by 16 in `unchecked_shl` 58 59error: any use of this value will cause an error 60 --> $DIR/const-int-unchecked.rs:31:31 61 | 62LL | const SHL_I32: i32 = unsafe { intrinsics::unchecked_shl(5_i32, 32) }; 63 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 64 | | 65 | Overflowing shift by 32 in `unchecked_shl` 66 67error: any use of this value will cause an error 68 --> $DIR/const-int-unchecked.rs:33:31 69 | 70LL | const SHL_I64: i64 = unsafe { intrinsics::unchecked_shl(5_i64, 64) }; 71 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 72 | | 73 | Overflowing shift by 64 in `unchecked_shl` 74 75error: any use of this value will cause an error 76 --> $DIR/const-int-unchecked.rs:35:33 77 | 78LL | const SHL_I128: i128 = unsafe { intrinsics::unchecked_shl(5_i128, 128) }; 79 | --------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 80 | | 81 | Overflowing shift by 128 in `unchecked_shl` 82 83error: any use of this value will cause an error 84 --> $DIR/const-int-unchecked.rs:40:33 85 | 86LL | const SHL_I8_NEG: i8 = unsafe { intrinsics::unchecked_shl(5_i8, -1) }; 87 | --------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 88 | | 89 | Overflowing shift by 255 in `unchecked_shl` 90 91error: any use of this value will cause an error 92 --> $DIR/const-int-unchecked.rs:42:35 93 | 94LL | const SHL_I16_NEG: i16 = unsafe { intrinsics::unchecked_shl(5_16, -1) }; 95 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 96 | | 97 | Overflowing shift by 65535 in `unchecked_shl` 98 99error: any use of this value will cause an error 100 --> $DIR/const-int-unchecked.rs:44:35 101 | 102LL | const SHL_I32_NEG: i32 = unsafe { intrinsics::unchecked_shl(5_i32, -1) }; 103 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 104 | | 105 | Overflowing shift by 4294967295 in `unchecked_shl` 106 107error: any use of this value will cause an error 108 --> $DIR/const-int-unchecked.rs:46:35 109 | 110LL | const SHL_I64_NEG: i64 = unsafe { intrinsics::unchecked_shl(5_i64, -1) }; 111 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 112 | | 113 | Overflowing shift by 18446744073709551615 in `unchecked_shl` 114 115error: any use of this value will cause an error 116 --> $DIR/const-int-unchecked.rs:48:37 117 | 118LL | const SHL_I128_NEG: i128 = unsafe { intrinsics::unchecked_shl(5_i128, -1) }; 119 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 120 | | 121 | Overflowing shift by 340282366920938463463374607431768211455 in `unchecked_shl` 122 123error: any use of this value will cause an error 124 --> $DIR/const-int-unchecked.rs:54:40 125 | 126LL | const SHL_I8_NEG_RANDOM: i8 = unsafe { intrinsics::unchecked_shl(5_i8, -6) }; 127 | ---------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 128 | | 129 | Overflowing shift by 250 in `unchecked_shl` 130 131error: any use of this value will cause an error 132 --> $DIR/const-int-unchecked.rs:56:42 133 | 134LL | const SHL_I16_NEG_RANDOM: i16 = unsafe { intrinsics::unchecked_shl(5_16, -13) }; 135 | -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 136 | | 137 | Overflowing shift by 65523 in `unchecked_shl` 138 139error: any use of this value will cause an error 140 --> $DIR/const-int-unchecked.rs:58:42 141 | 142LL | const SHL_I32_NEG_RANDOM: i32 = unsafe { intrinsics::unchecked_shl(5_i32, -25) }; 143 | -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 144 | | 145 | Overflowing shift by 4294967271 in `unchecked_shl` 146 147error: any use of this value will cause an error 148 --> $DIR/const-int-unchecked.rs:60:42 149 | 150LL | const SHL_I64_NEG_RANDOM: i64 = unsafe { intrinsics::unchecked_shl(5_i64, -30) }; 151 | -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 152 | | 153 | Overflowing shift by 18446744073709551586 in `unchecked_shl` 154 155error: any use of this value will cause an error 156 --> $DIR/const-int-unchecked.rs:62:44 157 | 158LL | const SHL_I128_NEG_RANDOM: i128 = unsafe { intrinsics::unchecked_shl(5_i128, -93) }; 159 | -------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 160 | | 161 | Overflowing shift by 340282366920938463463374607431768211363 in `unchecked_shl` 162 163error: any use of this value will cause an error 164 --> $DIR/const-int-unchecked.rs:69:29 165 | 166LL | const SHR_U8: u8 = unsafe { intrinsics::unchecked_shr(5_u8, 8) }; 167 | ----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 168 | | 169 | Overflowing shift by 8 in `unchecked_shr` 170 171error: any use of this value will cause an error 172 --> $DIR/const-int-unchecked.rs:71:31 173 | 174LL | const SHR_U16: u16 = unsafe { intrinsics::unchecked_shr(5_u16, 16) }; 175 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 176 | | 177 | Overflowing shift by 16 in `unchecked_shr` 178 179error: any use of this value will cause an error 180 --> $DIR/const-int-unchecked.rs:73:31 181 | 182LL | const SHR_U32: u32 = unsafe { intrinsics::unchecked_shr(5_u32, 32) }; 183 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 184 | | 185 | Overflowing shift by 32 in `unchecked_shr` 186 187error: any use of this value will cause an error 188 --> $DIR/const-int-unchecked.rs:75:31 189 | 190LL | const SHR_U64: u64 = unsafe { intrinsics::unchecked_shr(5_u64, 64) }; 191 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 192 | | 193 | Overflowing shift by 64 in `unchecked_shr` 194 195error: any use of this value will cause an error 196 --> $DIR/const-int-unchecked.rs:77:33 197 | 198LL | const SHR_U128: u128 = unsafe { intrinsics::unchecked_shr(5_u128, 128) }; 199 | --------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 200 | | 201 | Overflowing shift by 128 in `unchecked_shr` 202 203error: any use of this value will cause an error 204 --> $DIR/const-int-unchecked.rs:82:29 205 | 206LL | const SHR_I8: i8 = unsafe { intrinsics::unchecked_shr(5_i8, 8) }; 207 | ----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 208 | | 209 | Overflowing shift by 8 in `unchecked_shr` 210 211error: any use of this value will cause an error 212 --> $DIR/const-int-unchecked.rs:84:31 213 | 214LL | const SHR_I16: i16 = unsafe { intrinsics::unchecked_shr(5_16, 16) }; 215 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 216 | | 217 | Overflowing shift by 16 in `unchecked_shr` 218 219error: any use of this value will cause an error 220 --> $DIR/const-int-unchecked.rs:86:31 221 | 222LL | const SHR_I32: i32 = unsafe { intrinsics::unchecked_shr(5_i32, 32) }; 223 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 224 | | 225 | Overflowing shift by 32 in `unchecked_shr` 226 227error: any use of this value will cause an error 228 --> $DIR/const-int-unchecked.rs:88:31 229 | 230LL | const SHR_I64: i64 = unsafe { intrinsics::unchecked_shr(5_i64, 64) }; 231 | ------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 232 | | 233 | Overflowing shift by 64 in `unchecked_shr` 234 235error: any use of this value will cause an error 236 --> $DIR/const-int-unchecked.rs:90:33 237 | 238LL | const SHR_I128: i128 = unsafe { intrinsics::unchecked_shr(5_i128, 128) }; 239 | --------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 240 | | 241 | Overflowing shift by 128 in `unchecked_shr` 242 243error: any use of this value will cause an error 244 --> $DIR/const-int-unchecked.rs:95:33 245 | 246LL | const SHR_I8_NEG: i8 = unsafe { intrinsics::unchecked_shr(5_i8, -1) }; 247 | --------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 248 | | 249 | Overflowing shift by 255 in `unchecked_shr` 250 251error: any use of this value will cause an error 252 --> $DIR/const-int-unchecked.rs:97:35 253 | 254LL | const SHR_I16_NEG: i16 = unsafe { intrinsics::unchecked_shr(5_16, -1) }; 255 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 256 | | 257 | Overflowing shift by 65535 in `unchecked_shr` 258 259error: any use of this value will cause an error 260 --> $DIR/const-int-unchecked.rs:99:35 261 | 262LL | const SHR_I32_NEG: i32 = unsafe { intrinsics::unchecked_shr(5_i32, -1) }; 263 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 264 | | 265 | Overflowing shift by 4294967295 in `unchecked_shr` 266 267error: any use of this value will cause an error 268 --> $DIR/const-int-unchecked.rs:101:35 269 | 270LL | const SHR_I64_NEG: i64 = unsafe { intrinsics::unchecked_shr(5_i64, -1) }; 271 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 272 | | 273 | Overflowing shift by 18446744073709551615 in `unchecked_shr` 274 275error: any use of this value will cause an error 276 --> $DIR/const-int-unchecked.rs:103:37 277 | 278LL | const SHR_I128_NEG: i128 = unsafe { intrinsics::unchecked_shr(5_i128, -1) }; 279 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 280 | | 281 | Overflowing shift by 340282366920938463463374607431768211455 in `unchecked_shr` 282 283error: any use of this value will cause an error 284 --> $DIR/const-int-unchecked.rs:109:40 285 | 286LL | const SHR_I8_NEG_RANDOM: i8 = unsafe { intrinsics::unchecked_shr(5_i8, -6) }; 287 | ---------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 288 | | 289 | Overflowing shift by 250 in `unchecked_shr` 290 291error: any use of this value will cause an error 292 --> $DIR/const-int-unchecked.rs:111:42 293 | 294LL | const SHR_I16_NEG_RANDOM: i16 = unsafe { intrinsics::unchecked_shr(5_16, -13) }; 295 | -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 296 | | 297 | Overflowing shift by 65523 in `unchecked_shr` 298 299error: any use of this value will cause an error 300 --> $DIR/const-int-unchecked.rs:113:42 301 | 302LL | const SHR_I32_NEG_RANDOM: i32 = unsafe { intrinsics::unchecked_shr(5_i32, -25) }; 303 | -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 304 | | 305 | Overflowing shift by 4294967271 in `unchecked_shr` 306 307error: any use of this value will cause an error 308 --> $DIR/const-int-unchecked.rs:115:42 309 | 310LL | const SHR_I64_NEG_RANDOM: i64 = unsafe { intrinsics::unchecked_shr(5_i64, -30) }; 311 | -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 312 | | 313 | Overflowing shift by 18446744073709551586 in `unchecked_shr` 314 315error: any use of this value will cause an error 316 --> $DIR/const-int-unchecked.rs:117:44 317 | 318LL | const SHR_I128_NEG_RANDOM: i128 = unsafe { intrinsics::unchecked_shr(5_i128, -93) }; 319 | -------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- 320 | | 321 | Overflowing shift by 340282366920938463463374607431768211363 in `unchecked_shr` 322 323error: aborting due to 40 previous errors 324