Commit 083dfbe
committed
rust: Upgrade to version 1.75.0.
Pkgsrc changes:
* Adjust patches and cargo checksums to new versions.
* For an external LLVM, set dependency of llvm >= 16, in accordance
with the upstream changes.
* Mark that on NetBSD we now need >= 9.0, so 8.x is no longer supported.
* On NetBSD/sparc64 10.x, we now need GCC 12 to build the embedded
LLVM, which is version 17; apparently GCC 10.4 or 10.5 mis-compiles it,
resulting in an illegal instruction fault during the build.
Ref. rust-lang/rust#117231
Upstream changes:
Version 1.75.0 (2023-12-28)
==========================
- [Stabilize `async fn` and return-position `impl Trait` in traits.]
(rust-lang/rust#115822)
- [Allow function pointer signatures containing `&mut T` in `const` contexts.]
(rust-lang/rust#116015)
- [Match `usize`/`isize` exhaustively with half-open ranges.]
(rust-lang/rust#116692)
- [Guarantee that `char` has the same size and alignment as `u32`.]
(rust-lang/rust#116894)
- [Document that the null pointer has the 0 address.]
(rust-lang/rust#116988)
- [Allow partially moved values in `match`.]
(rust-lang/rust#103208)
- [Add notes about non-compliant FP behavior on 32bit x86 targets.]
(rust-lang/rust#113053)
- [Stabilize ratified RISC-V target features.]
(rust-lang/rust#116485)
Compiler
--------
- [Rework negative coherence to properly consider impls that only
partly overlap.] (rust-lang/rust#112875)
- [Bump `COINDUCTIVE_OVERLAP_IN_COHERENCE` to deny, and warn in dependencies.]
(rust-lang/rust#116493)
- [Consider alias bounds when computing liveness in NLL.]
(rust-lang/rust#116733)
- [Add the V (vector) extension to the `riscv64-linux-android` target spec.]
(rust-lang/rust#116618)
- [Automatically enable cross-crate inlining for small functions]
(rust-lang/rust#116505)
- Add several new tier 3 targets:
- [`csky-unknown-linux-gnuabiv2hf`]
(rust-lang/rust#117049)
- [`i586-unknown-netbsd`]
(rust-lang/rust#117170)
- [`mipsel-unknown-netbsd`]
(rust-lang/rust#117356)
Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.
Libraries
---------
- [Override `Waker::clone_from` to avoid cloning `Waker`s unnecessarily.]
(rust-lang/rust#96979)
- [Implement `BufRead` for `VecDeque<u8>`.]
(rust-lang/rust#110604)
- [Implement `FusedIterator` for `DecodeUtf16` when the inner iterator does.]
(rust-lang/rust#110729)
- [Implement `Not, Bit{And,Or}{,Assign}` for IP addresses.]
(rust-lang/rust#113747)
- [Implement `Default` for `ExitCode`.]
(rust-lang/rust#114589)
- [Guarantee representation of None in NPO]
(rust-lang/rust#115333)
- [Document when atomic loads are guaranteed read-only.]
(rust-lang/rust#115577)
- [Broaden the consequences of recursive TLS initialization.]
(rust-lang/rust#116172)
- [Windows: Support sub-millisecond sleep.]
(rust-lang/rust#116461)
- [Fix generic bound of `str::SplitInclusive`'s `DoubleEndedIterator` impl]
(rust-lang/rust#100806)
- [Fix exit status / wait status on non-Unix `cfg(unix)` platforms.]
(rust-lang/rust#115108)
Stabilized APIs
---------------
- [`Atomic*::from_ptr`]
(https://doc.rust-lang.org/stable/core/sync/atomic/struct.AtomicUsize.html#method.from_ptr)
- [`FileTimes`]
(https://doc.rust-lang.org/stable/std/fs/struct.FileTimes.html)
- [`FileTimesExt`]
(https://doc.rust-lang.org/stable/std/os/windows/fs/trait.FileTimesExt.html)
- [`File::set_modified`]
(https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.set_modified)
- [`File::set_times`]
(https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.set_times)
- [`IpAddr::to_canonical`]
(https://doc.rust-lang.org/stable/core/net/enum.IpAddr.html#method.to_canonical)
- [`Ipv6Addr::to_canonical`]
(https://doc.rust-lang.org/stable/core/net/struct.Ipv6Addr.html#method.to_canonical)
- [`Option::as_slice`]
(https://doc.rust-lang.org/stable/core/option/enum.Option.html#method.as_slice)
- [`Option::as_mut_slice`]
(https://doc.rust-lang.org/stable/core/option/enum.Option.html#method.as_mut_slice)
- [`pointer::byte_add`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_add)
- [`pointer::byte_offset`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_offset)
- [`pointer::byte_offset_from`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_offset_from)
- [`pointer::byte_sub`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_sub)
- [`pointer::wrapping_byte_add`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.wrapping_byte_add)
- [`pointer::wrapping_byte_offset`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.wrapping_byte_offset)
- [`pointer::wrapping_byte_sub`]
(https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.wrapping_byte_sub)
These APIs are now stable in const contexts:
- [`Ipv6Addr::to_ipv4_mapped`]
(https://doc.rust-lang.org/stable/core/net/struct.Ipv6Addr.html#method.to_ipv4_mapped)
- [`MaybeUninit::assume_init_read`]
(https://doc.rust-lang.org/stable/core/mem/union.MaybeUninit.html#method.assume_init_read)
- [`MaybeUninit::zeroed`]
(https://doc.rust-lang.org/stable/core/mem/union.MaybeUninit.html#method.zeroed)
- [`mem::discriminant`]
(https://doc.rust-lang.org/stable/core/mem/fn.discriminant.html)
- [`mem::zeroed`]
(https://doc.rust-lang.org/stable/core/mem/fn.zeroed.html)
Cargo
-----
- [Add new packages to `[workspace.members]` automatically.]
(rust-lang/cargo#12779)
- [Allow version-less `Cargo.toml` manifests.]
(rust-lang/cargo#12786)
- [Make browser links out of HTML file paths.]
(rust-lang/cargo#12889)
Rustdoc
-------
- [Accept less invalid Rust in rustdoc.]
(rust-lang/rust#117450)
- [Document lack of object safety on affected traits.]
(rust-lang/rust#113241)
- [Hide `#[repr(transparent)]` if it isn't part of the public ABI.]
(rust-lang/rust#115439)
- [Show enum discriminant if it is a C-like variant.]
(rust-lang/rust#116142)
Compatibility Notes
-------------------
- [FreeBSD targets now require at least version 12.]
(rust-lang/rust#114521)
- [Formally demote tier 2 MIPS targets to tier 3.]
(rust-lang/rust#115238)
- [Make misalignment a hard error in `const` contexts.]
(rust-lang/rust#115524)
- [Fix detecting references to packed unsized fields.]
(rust-lang/rust#115583)
- [Remove support for compiler plugins.]
(rust-lang/rust#116412)1 parent 371b99d commit 083dfbe
File tree
31 files changed
+227
-429
lines changed- lang/rust
- patches
31 files changed
+227
-429
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | | - | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | | - | |
| 222 | + | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
230 | 228 | | |
231 | | - | |
| 229 | + | |
232 | 230 | | |
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
238 | | - | |
| 236 | + | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
| 243 | + | |
246 | 244 | | |
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
251 | 249 | | |
252 | | - | |
| 250 | + | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
258 | 256 | | |
259 | | - | |
| 257 | + | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
266 | | - | |
| 264 | + | |
267 | 265 | | |
268 | 266 | | |
269 | 267 | | |
| |||
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
278 | | - | |
| 276 | + | |
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
| |||
288 | 286 | | |
289 | 287 | | |
290 | 288 | | |
291 | | - | |
| 289 | + | |
292 | 290 | | |
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
298 | | - | |
| 296 | + | |
299 | 297 | | |
300 | 298 | | |
301 | 299 | | |
| |||
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
318 | | - | |
| 316 | + | |
319 | 317 | | |
320 | 318 | | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
324 | 322 | | |
325 | | - | |
326 | | - | |
| 323 | + | |
| 324 | + | |
327 | 325 | | |
328 | 326 | | |
329 | 327 | | |
| |||
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
337 | | - | |
| 335 | + | |
338 | 336 | | |
339 | 337 | | |
340 | 338 | | |
| |||
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
346 | | - | |
| 344 | + | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
| |||
352 | 350 | | |
353 | 351 | | |
354 | 352 | | |
355 | | - | |
| 353 | + | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | | - | |
| 363 | + | |
366 | 364 | | |
367 | 365 | | |
368 | 366 | | |
| |||
371 | 369 | | |
372 | 370 | | |
373 | 371 | | |
374 | | - | |
| 372 | + | |
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
| |||
380 | 378 | | |
381 | 379 | | |
382 | 380 | | |
383 | | - | |
| 381 | + | |
384 | 382 | | |
385 | 383 | | |
386 | 384 | | |
| |||
389 | 387 | | |
390 | 388 | | |
391 | 389 | | |
392 | | - | |
| 390 | + | |
393 | 391 | | |
394 | 392 | | |
395 | 393 | | |
| |||
413 | 411 | | |
414 | 412 | | |
415 | 413 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
| |||
428 | 427 | | |
429 | 428 | | |
430 | 429 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | 430 | | |
| 431 | + | |
| 432 | + | |
440 | 433 | | |
441 | 434 | | |
442 | 435 | | |
443 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
444 | 441 | | |
445 | 442 | | |
446 | 443 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
456 | 447 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
462 | 451 | | |
463 | 452 | | |
464 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments