From 846ee0b9d0a84ea0868c7f3a3a6bb2e1730c16d7 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sat, 26 Aug 2023 17:54:15 +0800 Subject: [PATCH] rust: Update to 1.72.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version 1.72.0 (2023-08-24) ========================== Language -------- - [Replace const eval limit by a lint and add an exponential backoff warning](https://github.com/rust-lang/rust/pull/103877/) - [expand: Change how `#![cfg(FALSE)]` behaves on crate root](https://github.com/rust-lang/rust/pull/110141/) - [Stabilize inline asm for LoongArch64](https://github.com/rust-lang/rust/pull/111235/) - [Uplift `clippy::undropped_manually_drops` lint](https://github.com/rust-lang/rust/pull/111530/) - [Uplift `clippy::invalid_utf8_in_unchecked` lint](https://github.com/rust-lang/rust/pull/111543/) - [Uplift `clippy::cast_ref_to_mut` lint](https://github.com/rust-lang/rust/pull/111567/) - [Uplift `clippy::cmp_nan` lint](https://github.com/rust-lang/rust/pull/111818/) - [resolve: Remove artificial import ambiguity errors](https://github.com/rust-lang/rust/pull/112086/) - [Don't require associated types with Self: Sized bounds in `dyn Trait` objects](https://github.com/rust-lang/rust/pull/112319/) Compiler -------- - [Remember names of `cfg`-ed out items to mention them in diagnostics](https://github.com/rust-lang/rust/pull/109005/) - [Support for native WASM exceptions](https://github.com/rust-lang/rust/pull/111322/) - [Add support for NetBSD/aarch64-be (big-endian arm64).](https://github.com/rust-lang/rust/pull/111326/) - [Write to stdout if `-` is given as output file](https://github.com/rust-lang/rust/pull/111626/) - [Force all native libraries to be statically linked when linking a static binary](https://github.com/rust-lang/rust/pull/111698/) - [Add Tier 3 support for `loongarch64-unknown-none*`](https://github.com/rust-lang/rust/pull/112310/) - [Prevent `.eh_frame` from being emitted for `-C panic=abort`](https://github.com/rust-lang/rust/pull/112403/) - [Support 128-bit enum variant in debuginfo codegen](https://github.com/rust-lang/rust/pull/112474/) - [compiler: update solaris/illumos to enable tsan support.](https://github.com/rust-lang/rust/pull/112039/) Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support. Libraries --------- - [Document memory orderings of `thread::{park, unpark}`](https://github.com/rust-lang/rust/pull/99587/) - [io: soften ‘at most one write attempt’ requirement in io::Write::write](https://github.com/rust-lang/rust/pull/107200/) - [Specify behavior of HashSet::insert](https://github.com/rust-lang/rust/pull/107619/) - [Relax implicit `T: Sized` bounds on `BufReader`, `BufWriter` and `LineWriter`](https://github.com/rust-lang/rust/pull/111074/) - [Update runtime guarantee for `select_nth_unstable`](https://github.com/rust-lang/rust/pull/111974/) - [Return `Ok` on kill if process has already exited](https://github.com/rust-lang/rust/pull/112594/) - [Implement PartialOrd for `Vec`s over different allocators](https://github.com/rust-lang/rust/pull/112632/) - [Use 128 bits for TypeId hash](https://github.com/rust-lang/rust/pull/109953/) - [Don't drain-on-drop in DrainFilter impls of various collections.](https://github.com/rust-lang/rust/pull/104455/) - [Make `{Arc,Rc,Weak}::ptr_eq` ignore pointer metadata](https://github.com/rust-lang/rust/pull/106450/) Rustdoc ------- - [Allow whitespace as path separator like double colon](https://github.com/rust-lang/rust/pull/108537/) - [Add search result item types after their name](https://github.com/rust-lang/rust/pull/110688/) - [Search for slices and arrays by type with `[]`](https://github.com/rust-lang/rust/pull/111958/) - [Clean up type unification and "unboxing"](https://github.com/rust-lang/rust/pull/112233/) Stabilized APIs --------------- - [`impl Sync for mpsc::Sender`](https://doc.rust-lang.org/nightly/std/sync/mpsc/struct.Sender.html#impl-Sync-for-Sender%3CT%3E) - [`impl TryFrom<&OsStr> for &str`](https://doc.rust-lang.org/nightly/std/primitive.str.html#impl-TryFrom%3C%26'a+OsStr%3E-for-%26'a+str) - [`String::leak`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html#method.leak) These APIs are now stable in const contexts: - [`CStr::from_bytes_with_nul`](https://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.from_bytes_with_nul) - [`CStr::to_bytes`](https://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.from_bytes_with_nul) - [`CStr::to_bytes_with_nul`](https://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.from_bytes_with_nul) - [`CStr::to_str`](https://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.from_bytes_with_nul) Cargo ----- - Enable `-Zdoctest-in-workspace` by default. When running each documentation test, the working directory is set to the root directory of the package the test belongs to. [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-test.html#working-directory-of-tests) [#12221](https://github.com/rust-lang/cargo/pull/12221) [#12288](https://github.com/rust-lang/cargo/pull/12288) - Add support of the "default" keyword to reset previously set `build.jobs` parallelism back to the default. [#12222](https://github.com/rust-lang/cargo/pull/12222) Compatibility Notes ------------------- - [Alter `Display` for `Ipv6Addr` for IPv4-compatible addresses](https://github.com/rust-lang/rust/pull/112606/) - Cargo changed feature name validation check to a hard error. The warning was added in Rust 1.49. These extended characters aren't allowed on crates.io, so this should only impact users of other registries, or people who don't publish to a registry. [#12291](https://github.com/rust-lang/cargo/pull/12291) Refreshed patches. Signed-off-by: Tianling Shen --- lang/rust/Makefile | 4 +-- .../0001-Update-xz2-and-use-it-static.patch | 6 ++-- .../patches/0002-Bumped-libc-version.patch | 35 ------------------- 3 files changed, 5 insertions(+), 40 deletions(-) delete mode 100644 lang/rust/patches/0002-Bumped-libc-version.patch diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 60df0e5cde1f5..a3b92682b758b 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk include ./rust-values.mk PKG_NAME:=rust -PKG_VERSION:=1.71.1 +PKG_VERSION:=1.72.0 PKG_RELEASE:=1 PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.gz PKG_SOURCE_URL:=https://static.rust-lang.org/dist/ -PKG_HASH:=6fa90d50d1d529a75f6cc349784de57d7ec0ba2419b09bde7d335c25bd4e472e +PKG_HASH:=ea9d61bbb51d76b6ea681156f69f0e0596b59722f04414b01c6e100b4b5be3a1 HOST_BUILD_DIR:=$(BUILD_DIR)/host/rust-$(RUSTC_TARGET_ARCH)/rustc-$(PKG_VERSION)-src PKG_MAINTAINER:=Luca Barbato diff --git a/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch b/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch index 8d0c4b042a957..c5266669dbebc 100644 --- a/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch +++ b/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch @@ -11,7 +11,7 @@ Subject: [PATCH] Update xz2 and use it static --- a/src/bootstrap/Cargo.lock +++ b/src/bootstrap/Cargo.lock -@@ -443,9 +443,9 @@ dependencies = [ +@@ -430,9 +430,9 @@ dependencies = [ [[package]] name = "lzma-sys" @@ -23,7 +23,7 @@ Subject: [PATCH] Update xz2 and use it static dependencies = [ "cc", "libc", -@@ -912,9 +912,9 @@ dependencies = [ +@@ -899,9 +899,9 @@ dependencies = [ [[package]] name = "xz2" @@ -37,7 +37,7 @@ Subject: [PATCH] Update xz2 and use it static ] --- a/src/bootstrap/Cargo.toml +++ b/src/bootstrap/Cargo.toml -@@ -50,7 +50,7 @@ toml = "0.5" +@@ -49,7 +49,7 @@ toml = "0.5" ignore = "0.4.10" opener = "0.5" once_cell = "1.7.2" diff --git a/lang/rust/patches/0002-Bumped-libc-version.patch b/lang/rust/patches/0002-Bumped-libc-version.patch deleted file mode 100644 index 52c8a245c39d7..0000000000000 --- a/lang/rust/patches/0002-Bumped-libc-version.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 032857e7e403f654129c45dc7e6718a9ad49e377 Mon Sep 17 00:00:00 2001 -From: Nikolay Arhipov -Date: Tue, 6 Jun 2023 16:09:05 +0300 -Subject: [PATCH] Bumped libc version - ---- - Cargo.lock | 4 ++-- - library/std/Cargo.toml | 2 +- - 2 files changed, 3 insertions(+), 3 deletions(-) - ---- a/Cargo.lock -+++ b/Cargo.lock -@@ -1988,9 +1988,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0e - - [[package]] - name = "libc" --version = "0.2.143" -+version = "0.2.146" - source = "registry+https://github.com/rust-lang/crates.io-index" --checksum = "edc207893e85c5d6be840e969b496b53d94cec8be2d501b214f50daa97fa8024" -+checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b" - dependencies = [ - "rustc-std-workspace-core", - ] ---- a/library/std/Cargo.toml -+++ b/library/std/Cargo.toml -@@ -15,7 +15,7 @@ cfg-if = { version = "1.0", features = [ - panic_unwind = { path = "../panic_unwind", optional = true } - panic_abort = { path = "../panic_abort" } - core = { path = "../core" } --libc = { version = "0.2.143", default-features = false, features = ['rustc-dep-of-std'] } -+libc = { version = "0.2.146", default-features = false, features = ['rustc-dep-of-std'] } - compiler_builtins = { version = "0.1.92" } - profiler_builtins = { path = "../profiler_builtins", optional = true } - unwind = { path = "../unwind" }