Commit 9081e36
committed
rust: Upgrade to version 1.73.0.
Pkgsrc changes:
* Adjust patches and cargo checksums to new versions.
* For an external LLVM, set dependency of llvm >= 15, in accordance
with the upstream changes.
* Add a patch with a backport from LLVM 17.0.3 fixing codegen for
PPC, ref. rust-lang/rust#116845
Upstream changes:
Version 1.73.0 (2023-10-05)
==========================
Language
--------
- [Uplift `clippy::fn_null_check` lint as `useless_ptr_null_checks`.]
(rust-lang/rust#111717)
- [Make `noop_method_call` warn by default.]
(rust-lang/rust#111916)
- [Support interpolated block for `try` and `async` in macros.]
(rust-lang/rust#112953)
- [Make `unconditional_recursion` lint detect recursive drops.]
(rust-lang/rust#113902)
- [Future compatibility warning for some impls being incorrectly
considered not overlapping.]
(rust-lang/rust#114023)
- [The `invalid_reference_casting` lint is now **deny-by-default**
(instead of allow-by-default)]
(rust-lang/rust#112431
Compiler
--------
- [Write version information in a `.comment` section like GCC/Clang.]
(rust-lang/rust#97550)
- [Add documentation on v0 symbol mangling.]
(rust-lang/rust#97571)
- [Stabilize `extern "thiscall"` and `"thiscall-unwind"` ABIs.]
(rust-lang/rust#114562)
- [Only check outlives goals on impl compared to trait.]
(rust-lang/rust#109356)
- [Infer type in irrefutable slice patterns with fixed length as array.]
(rust-lang/rust#113199)
- [Discard default auto trait impls if explicit ones exist.]
(rust-lang/rust#113312)
- Add several new tier 3 targets:
- [`aarch64-unknown-teeos`]
(rust-lang/rust#113480)
- [`csky-unknown-linux-gnuabiv2`]
(rust-lang/rust#113658)
- [`riscv64-linux-android`]
(rust-lang/rust#112858)
- [`riscv64gc-unknown-hermit`]
(rust-lang/rust#114004)
- [`x86_64-unikraft-linux-musl`]
(rust-lang/rust#113411)
- [`x86_64-unknown-linux-ohos`]
(rust-lang/rust#113061)
- [Add `wasm32-wasi-preview1-threads` as a tier 2 target.]
(rust-lang/rust#112922)
Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.
Libraries
---------
- [Add `Read`, `Write` and `Seek` impls for `Arc<File>`.]
(rust-lang/rust#94748)
- [Merge functionality of `io::Sink` into `io::Empty`.]
(rust-lang/rust#98154)
- [Implement `RefUnwindSafe` for `Backtrace`]
(rust-lang/rust#100455)
- [Make `ExitStatus` implement `Default`]
(rust-lang/rust#106425)
- [`impl SliceIndex<str> for (Bound<usize>, Bound<usize>)`]
(rust-lang/rust#111081)
- [Change default panic handler message format.]
(rust-lang/rust#112849)
- [Cleaner `assert_eq!` & `assert_ne!` panic messages.]
(rust-lang/rust#111071)
- [Correct the (deprecated) Android `stat` struct definitions.]
(rust-lang/rust#113130)
Stabilized APIs
---------------
- [Unsigned `{integer}::div_ceil`]
(https://doc.rust-lang.org/stable/std/primitiv e.u32.html#method.div_ceil)
- [Unsigned `{integer}::next_multiple_of`]
(https://doc.rust-lang.org/stable/std/primitive.u32.html#method.next_multiple_of)
- [Unsigned `{integer}::checked_next_multiple_of`]
(https://doc.rust-lang.org/stable/std/primitive.u32.html#method.checked_next_multiple_of)
- [`std::ffi::FromBytesUntilNulError`]
(https://doc.rust-lang.org/stable/std/ffi/struct.FromBytesUntilNulError.html)
- [`std::os::unix::fs::chown`]
(https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chown.html)
- [`std::os::unix::fs::fchown`]
(https://doc.rust-lang.org/stable/std/os/unix/fs/fn.fchown.html)
- [`std::os::unix::fs::lfchown`]
(https://doc.rust-lang.org/stable/std/os/unix/fs/fn.lchown.html)
- [`LocalKey::<Cell<T>>::get`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.get)
- [`LocalKey::<Cell<T>>::set`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.set)
- [`LocalKey::<Cell<T>>::take`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.take)
- [`LocalKey::<Cell<T>>::replace`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.replace)
- [`LocalKey::<RefCell<T>>::with_borrow`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.with_borrow)
- [`LocalKey::<RefCell<T>>::with_borrow_mut`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.with_borrow_mut)
- [`LocalKey::<RefCell<T>>::set`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.set-1)
- [`LocalKey::<RefCell<T>>::take`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.take-1)
- [`LocalKey::<RefCell<T>>::replace`]
(https://doc.rust-lang.org/stable/std/thread/struct.LocalKey.html#method.replace-1)
These APIs are now stable in const contexts:
- [`rc::Weak::new`]
(https://doc.rust-lang.org/stable/alloc/rc/struct.Weak.html#method.new)
- [`sync::Weak::new`]
(https://doc.rust-lang.org/stable/alloc/sync/struct.Weak.html#method.new)
- [`NonNull::as_ref`]
(https://doc.rust-lang.org/stable/core/ptr/struct.NonNull.html#method.as_ref)
Cargo
-----
- [Encode URL params correctly for `SourceId` in `Cargo.lock`.]
(rust-lang/cargo#12280)
- [Bail out an error when using `cargo::` in custom build script.]
(rust-lang/cargo#12332)
Misc
----
Compatibility Notes
-------------------
- [Update the minimum external LLVM to 15.]
(rust-lang/rust#114148)
- [Check for non-defining uses of return position `impl Trait`.]
(rust-lang/rust#112842)
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.
- [Remove LLVM pointee types, supporting only opaque pointers.]
(rust-lang/rust#105545)
- [Port PGO/LTO/BOLT optimized build pipeline to Rust.]
(rust-lang/rust#112235)
- [Replace in-tree `rustc_apfloat` with the new version of the crate.]
(rust-lang/rust#113843)
- [Update to LLVM 17.]
(rust-lang/rust#114048)
- [Add `internal_features` lint for internal unstable features.]
(rust-lang/rust#108955)
- [Mention style for new syntax in tracking issue template.]
(rust-lang/rust#113586)1 parent be43566 commit 9081e36
File tree
9 files changed
+191
-266
lines changed- lang/rust
- patches
9 files changed
+191
-266
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
378 | 387 | | |
379 | 388 | | |
380 | 389 | | |
381 | 390 | | |
382 | 391 | | |
383 | 392 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | 458 | | |
465 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
466 | 463 | | |
467 | 464 | | |
468 | 465 | | |
| |||
480 | 477 | | |
481 | 478 | | |
482 | 479 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | 480 | | |
488 | 481 | | |
489 | 482 | | |
| |||
0 commit comments