Commit 6914509
committed
rust: Upgrade to version 1.70.0.
Pkgsrc changes:
* Adjust patches and cargo checksums to new versions.
* Add support for NetBSD/riscv64.
Upstream changes:
Version 1.70.0 (2023-06-01)
==========================
Language
--------
- [Relax ordering rules for `asm!` operands]
(rust-lang/rust#105798)
- [Properly allow macro expanded `format_args` invocations to uses captures]
(rust-lang/rust#106505)
- [Lint ambiguous glob re-exports]
(rust-lang/rust#107880)
- [Perform const and unsafe checking for expressions in `let _ =
expr` position.]
(rust-lang/rust#102256)
Compiler
--------
- [Extend -Cdebuginfo with new options and named aliases]
(rust-lang/rust#109808)
This provides a smaller version of debuginfo for cases that only
need line number information (`-Cdebuginfo=line-tables-only`),
which may eventually become the default for `-Cdebuginfo=1`.
- [Make `unused_allocation` lint against `Box::new` too]
(rust-lang/rust#104363)
- [Detect uninhabited types early in const eval]
(rust-lang/rust#109435)
- [Switch to LLD as default linker for {arm,thumb}v4t-none-eabi]
(rust-lang/rust#109721)
- [Add tier 3 target `loongarch64-unknown-linux-gnu`]
(rust-lang/rust#96971)
- [Add tier 3 target for `i586-pc-nto-qnx700`(QNX Neutrino RTOS, version 7.0)]
(rust-lang/rust#109173),
- [Insert alignment checks for pointer dereferences as debug assertions]
(rust-lang/rust#98112)
This catches undefined behavior at runtime, and may cause existing
code to fail.
Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.
Libraries
---------
- [Document NonZeroXxx layout guarantees]
(rust-lang/rust#94786)
- [Windows: make `Command` prefer non-verbatim paths]
(rust-lang/rust#96391)
- [Implement Default for some alloc/core iterators]
(rust-lang/rust#99929)
- [Fix handling of trailing bare CR in str::lines]
(rust-lang/rust#100311)
- [allow negative numeric literals in `concat!`]
(rust-lang/rust#106844)
- [Add documentation about the memory layout of `Cell`]
(rust-lang/rust#106921)
- [Use `partial_cmp` to implement tuple `lt`/`le`/`ge`/`gt`]
(rust-lang/rust#108157)
- [Stabilize `atomic_as_ptr`]
(rust-lang/rust#108419)
- [Stabilize `nonnull_slice_from_raw_parts`]
(rust-lang/rust#97506)
- [Partial stabilization of `once_cell`]
(rust-lang/rust#105587)
- [Stabilize `nonzero_min_max`]
(rust-lang/rust#106633)
- [Flatten/inline format_args!() and (string and int) literal
arguments into format_args!()]
(rust-lang/rust#106824)
- [Stabilize movbe target feature]
(rust-lang/rust#107711)
- [don't splice from files into pipes in io::copy]
(rust-lang/rust#108283)
- [Add a builtin unstable `FnPtr` trait that is implemented for
all function pointers]
(rust-lang/rust#108080)
This extends `Debug`, `Pointer`, `Hash`, `PartialEq`, `Eq`,
`PartialOrd`, and `Ord` implementations for function pointers
with all ABIs.
Stabilized APIs
---------------
- [`NonZero*::MIN/MAX`]
(https://doc.rust-lang.org/stable/std/num/struct.NonZeroI8.html#associatedconstant.MIN)
- [`BinaryHeap::retain`]
(https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.retain)
- [`Default for std::collections::binary_heap::IntoIter`]
(https://doc.rust-lang.org/stable/std/collections/binary_heap/struct.IntoIter.html)
- [`Default for std::collections::btree_map::{IntoIter, Iter, IterMut}`]
(https://doc.rust-lang.org/stable/std/collections/btree_map/struct.IntoIter.html)
- [`Default for std::collections::btree_map::{IntoKeys, Keys}`]
(https://doc.rust-lang.org/stable/std/collections/btree_map/struct.IntoKeys.html)
- [`Default for std::collections::btree_map::{IntoValues, Values}`]
(https://doc.rust-lang.org/stable/std/collections/btree_map/struct.IntoKeys.html)
- [`Default for std::collections::btree_map::Range`]
(https://doc.rust-lang.org/stable/std/collections/btree_map/struct.Range.html)
- [`Default for std::collections::btree_set::{IntoIter, Iter}`]
(https://doc.rust-lang.org/stable/std/collections/btree_set/struct.IntoIter.html)
- [`Default for std::collections::btree_set::Range`]
(https://doc.rust-lang.org/stable/std/collections/btree_set/struct.Range.html)
- [`Default for std::collections::linked_list::{IntoIter, Iter, IterMut}`]
(https://doc.rust-lang.org/stable/alloc/collections/linked_list/struct.IntoIter.html)
- [`Default for std::vec::IntoIter`]
(https://doc.rust-lang.org/stable/alloc/vec/struct.IntoIter.html#impl-Default-for-IntoIter%3CT,+A%3E)
- [`Default for std::iter::Chain`]
(https://doc.rust-lang.org/stable/std/iter/struct.Chain.html)
- [`Default for std::iter::Cloned`]
(https://doc.rust-lang.org/stable/std/iter/struct.Cloned.html)
- [`Default for std::iter::Copied`]
(https://doc.rust-lang.org/stable/std/iter/struct.Copied.html)
- [`Default for std::iter::Enumerate`]
(https://doc.rust-lang.org/stable/std/iter/struct.Enumerate.html)
- [`Default for std::iter::Flatten`]
(https://doc.rust-lang.org/stable/std/iter/struct.Flatten.html)
- [`Default for std::iter::Fuse`]
(https://doc.rust-lang.org/stable/std/iter/struct.Fuse.html)
- [`Default for std::iter::Rev`]
(https://doc.rust-lang.org/stable/std/iter/struct.Rev.html)
- [`Default for std::slice::Iter`]
(https://doc.rust-lang.org/stable/std/slice/struct.Iter.html)
- [`Default for std::slice::IterMut`]
(https://doc.rust-lang.org/stable/std/slice/struct.IterMut.html)
- [`Rc::into_inner`]
(https://doc.rust-lang.org/stable/alloc/rc/struct.Rc.html#method.into_inner)
- [`Arc::into_inner`]
(https://doc.rust-lang.org/stable/alloc/sync/struct.Arc.html#method.into_inner)
- [`std::cell::OnceCell`]
(https://doc.rust-lang.org/stable/std/cell/struct.OnceCell.html)
- [`Option::is_some_and`]
(https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.is_some_and)
- [`NonNull::slice_from_raw_parts`]
(https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.slice_from_raw_parts)
- [`Result::is_ok_and`]
(https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.is_ok_and)
- [`Result::is_err_and`]
(https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.is_err_and)
- [`std::sync::atomic::Atomic*::as_ptr`]
(https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicU8.html#method.as_ptr)
- [`std::io::IsTerminal`]
(https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html)
- [`std::os::linux::net::SocketAddrExt`]
(https://doc.rust-lang.org/stable/std/os/linux/net/trait.SocketAddrExt.html)
- [`std::os::unix::net::UnixDatagram::bind_addr`]
(https://doc.rust-lang.org/stable/std/os/unix/net/struct.UnixDatagram.html#method.bind_addr)
- [`std::os::unix::net::UnixDatagram::connect_addr`]
(https://doc.rust-lang.org/stable/std/os/unix/net/struct.UnixDatagram.html#method.connect_addr)
- [`std::os::unix::net::UnixDatagram::send_to_addr`]
(https://doc.rust-lang.org/stable/std/os/unix/net/struct.UnixDatagram.html#method.send_to_addr)
- [`std::os::unix::net::UnixListener::bind_addr`]
(https://doc.rust-lang.org/stable/std/os/unix/net/struct.UnixListener.html#method.bind_addr)
- [`std::path::Path::as_mut_os_str`]
(https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.as_mut_os_str)
- [`std::sync::OnceLock`]
(https://doc.rust-lang.org/stable/std/sync/struct.OnceLock.html)
Cargo
-----
- [Add `CARGO_PKG_README`]
(rust-lang/cargo#11645)
- [Make `sparse` the default protocol for crates.io]
(rust-lang/cargo#11791)
- [Accurately show status when downgrading dependencies]
(rust-lang/cargo#11839)
- [Use registry.default for login/logout]
(rust-lang/cargo#11949)
- [Stabilize `cargo logout`]
(rust-lang/cargo#11950)
Misc
----
- [Stabilize rustdoc `--test-run-directory`]
(rust-lang/rust#103682)
Compatibility Notes
-------------------
- [Prevent stable `libtest` from supporting `-Zunstable-options`]
(rust-lang/rust#109044)
- [Perform const and unsafe checking for expressions in `let _ =
expr` position.]
(rust-lang/rust#102256)
- [WebAssembly targets enable `sign-ext` and `mutable-globals`
features in codegen]
(rust-lang/rust#109807)
This may cause incompatibility with older execution environments.
- [Insert alignment checks for pointer dereferences as debug assertions]
(rust-lang/rust#98112)
This catches undefined behavior at runtime, and may cause existing
code to fail.
Internal Changes
----------------
These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.
- [Upgrade to LLVM 16]
(rust-lang/rust#109474)
- [Use SipHash-1-3 instead of SipHash-2-4 for StableHasher]
(rust-lang/rust#107925)1 parent da7caf4 commit 6914509
File tree
22 files changed
+470
-247
lines changed- lang/rust
- patches
22 files changed
+470
-247
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 178 | + | |
| 179 | + | |
186 | 180 | | |
187 | 181 | | |
188 | 182 | | |
| |||
217 | 211 | | |
218 | 212 | | |
219 | 213 | | |
220 | | - | |
| 214 | + | |
221 | 215 | | |
222 | 216 | | |
223 | 217 | | |
224 | 218 | | |
225 | 219 | | |
226 | 220 | | |
227 | | - | |
| 221 | + | |
228 | 222 | | |
229 | 223 | | |
230 | 224 | | |
231 | 225 | | |
232 | 226 | | |
233 | 227 | | |
234 | | - | |
| 228 | + | |
235 | 229 | | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
239 | 233 | | |
240 | 234 | | |
241 | | - | |
| 235 | + | |
242 | 236 | | |
243 | 237 | | |
244 | 238 | | |
245 | 239 | | |
246 | 240 | | |
247 | 241 | | |
248 | | - | |
| 242 | + | |
249 | 243 | | |
250 | 244 | | |
251 | 245 | | |
252 | 246 | | |
253 | 247 | | |
254 | 248 | | |
255 | | - | |
| 249 | + | |
256 | 250 | | |
257 | 251 | | |
258 | 252 | | |
259 | 253 | | |
260 | 254 | | |
261 | 255 | | |
262 | | - | |
| 256 | + | |
263 | 257 | | |
264 | 258 | | |
265 | 259 | | |
| |||
271 | 265 | | |
272 | 266 | | |
273 | 267 | | |
274 | | - | |
| 268 | + | |
275 | 269 | | |
276 | 270 | | |
277 | 271 | | |
| |||
284 | 278 | | |
285 | 279 | | |
286 | 280 | | |
287 | | - | |
| 281 | + | |
288 | 282 | | |
289 | 283 | | |
290 | 284 | | |
291 | 285 | | |
292 | 286 | | |
293 | 287 | | |
294 | | - | |
| 288 | + | |
295 | 289 | | |
296 | 290 | | |
297 | 291 | | |
| |||
311 | 305 | | |
312 | 306 | | |
313 | 307 | | |
314 | | - | |
| 308 | + | |
315 | 309 | | |
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
319 | 313 | | |
320 | 314 | | |
321 | | - | |
| 315 | + | |
322 | 316 | | |
323 | 317 | | |
324 | 318 | | |
| |||
341 | 335 | | |
342 | 336 | | |
343 | 337 | | |
344 | | - | |
| 338 | + | |
345 | 339 | | |
346 | 340 | | |
347 | 341 | | |
| |||
350 | 344 | | |
351 | 345 | | |
352 | 346 | | |
353 | | - | |
| 347 | + | |
354 | 348 | | |
355 | 349 | | |
356 | 350 | | |
| |||
359 | 353 | | |
360 | 354 | | |
361 | 355 | | |
362 | | - | |
| 356 | + | |
363 | 357 | | |
364 | 358 | | |
365 | 359 | | |
| |||
369 | 363 | | |
370 | 364 | | |
371 | 365 | | |
372 | | - | |
| 366 | + | |
373 | 367 | | |
374 | 368 | | |
375 | 369 | | |
| |||
378 | 372 | | |
379 | 373 | | |
380 | 374 | | |
381 | | - | |
| 375 | + | |
382 | 376 | | |
383 | 377 | | |
384 | 378 | | |
| |||
387 | 381 | | |
388 | 382 | | |
389 | 383 | | |
390 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
391 | 394 | | |
392 | 395 | | |
393 | 396 | | |
| |||
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
429 | | - | |
430 | | - | |
431 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
438 | 439 | | |
439 | | - | |
440 | | - | |
441 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
442 | 445 | | |
443 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
444 | 449 | | |
445 | 450 | | |
446 | 451 | | |
| |||
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
| |||
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | | - | |
472 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
473 | 476 | | |
474 | 477 | | |
475 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments