public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust] f43: Update to Rust 1.99.1
@ 2026-10-15 18:50 Josh Stone
0 siblings, 0 replies; only message in thread
From: Josh Stone @ 2026-10-15 18:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust
Branch : f43
Commit : cef4be2eb233987c4b7c40c3eeb3f1ea1494dfd9
Author : Josh Stone <jistone@redhat.com>
Date : 2026-10-15T11:11:41-07:00
Stats : +27/-112 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust/c/cef4be2eb233987c4b7c40c3eeb3f1ea1494dfd9?branch=f43
Log:
Update to Rust 1.99.1
---
diff --git a/.gitignore b/.gitignore
index 7965357..c57a823 100644
--- a/.gitignore
+++ b/.gitignore
@@ -490,3 +490,5 @@
/rustc-1.99.0-src.tar.xz
/rustc-1.99.0-src.tar.xz.asc
/wasi-libc-wasi-sdk-34.tar.gz
+/rustc-1.99.1-src.tar.xz
+/rustc-1.99.1-src.tar.xz.asc
diff --git a/0001-Add-wcslen-builtin.patch b/0001-Add-wcslen-builtin.patch
deleted file mode 100644
index 21374ba..0000000
--- a/0001-Add-wcslen-builtin.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-From 585a7fac03049a17d9412992c216ba9b44a9b003 Mon Sep 17 00:00:00 2001
-From: Nicholas Bishop <nbishop@nbishop.net>
-Date: Sun, 23 Aug 2026 13:56:05 -0400
-Subject: [PATCH] Add wcslen builtin
-
-In LLVM 23, calls to `wcslen` are sometimes generated by a loop optimization
-pass: https://github.com/llvm/llvm-project/pull/132572. This causes some Rust
-targets (including but not limited to the UEFI targets) to fail with a linker
-error if a loop is transformed into a `wcslen` call. Provide a simple
-implementation of `wcslen` in compiler-builtins to fix this.
-
-Fixes https://github.com/rust-lang/rust/issues/160827
----
- .../builtins-test/tests/mem.rs | 36 ++++++++++++++++++-
- .../compiler-builtins/src/mem/mod.rs | 18 ++++++++++
- 2 files changed, 53 insertions(+), 1 deletion(-)
-
-diff --git a/library/compiler-builtins/builtins-test/tests/mem.rs b/library/compiler-builtins/builtins-test/tests/mem.rs
-index 3c01a617950..83147840eee 100644
---- a/library/compiler-builtins/builtins-test/tests/mem.rs
-+++ b/library/compiler-builtins/builtins-test/tests/mem.rs
-@@ -1,5 +1,5 @@
- extern crate compiler_builtins;
--use compiler_builtins::mem::{memcmp, memcpy, memmove, memset};
-+use compiler_builtins::mem::{memcmp, memcpy, memmove, memset, wchar_t};
-
- const WORD_SIZE: usize = core::mem::size_of::<usize>();
-
-@@ -346,3 +346,37 @@ fn uwrite() {
- }
- }
- }
-+
-+/// Wrapper that prevents inlining the wcslen implementation into the test.
-+///
-+/// Inlining causes LLVM to pick up the wcslen pattern and generate a call to
-+/// wcslen. That causes a linker error for tests on platforms without wcslen
-+/// (such as wasm).
-+///
-+/// `no_mangle` is needed because LLVM knows not to apply the wcslen
-+/// optimization to a function with this name:
-+/// https://github.com/llvm/llvm-project/pull/132572
-+#[inline(never)]
-+#[unsafe(no_mangle)]
-+unsafe fn wcslen(p: *const wchar_t) -> usize {
-+ unsafe { compiler_builtins::mem::wcslen(p) }
-+}
-+
-+#[test]
-+fn test_strlen() {
-+ unsafe {
-+ let s = c"";
-+ assert_eq!(strlen(s.as_ptr()), 0);
-+ let s = c"hello, world!";
-+ assert_eq!(strlen(s.as_ptr()), 13);
-+ }
-+}
-+
-+#[test]
-+fn wide_string_length() {
-+ let s = [0];
-+ assert_eq!(unsafe { wcslen(s.as_ptr()) }, 0);
-+
-+ let s = [97, 98, 99, 0];
-+ assert_eq!(unsafe { wcslen(s.as_ptr()) }, 3);
-+}
-diff --git a/library/compiler-builtins/compiler-builtins/src/mem/mod.rs b/library/compiler-builtins/compiler-builtins/src/mem/mod.rs
-index ef0f4da228e..0fbb34c05cb 100644
---- a/library/compiler-builtins/compiler-builtins/src/mem/mod.rs
-+++ b/library/compiler-builtins/compiler-builtins/src/mem/mod.rs
-@@ -7,6 +7,13 @@
- #[cfg_attr(all(feature = "arch", target_arch = "x86_64"), path = "x86_64.rs")]
- mod impls;
-
-+#[cfg(any(windows, target_os = "uefi"))]
-+#[expect(non_camel_case_types)]
-+pub type wchar_t = u16;
-+#[cfg(not(any(windows, target_os = "uefi")))]
-+#[expect(non_camel_case_types)]
-+pub type wchar_t = i32;
-+
- intrinsics! {
- #[mem_builtin]
- pub unsafe extern "C" fn memcpy(
-@@ -67,4 +74,15 @@
- pub unsafe extern "C" fn strlen(s: *const core::ffi::c_char) -> usize {
- impls::c_string_length(s)
- }
-+
-+ #[mem_builtin]
-+ pub unsafe extern "C" fn wcslen(s: *const crate::mem::wchar_t) -> usize {
-+ let mut s = s;
-+ let mut n = 0;
-+ while *s != 0 {
-+ n += 1;
-+ s = s.add(1);
-+ }
-+ n
-+ }
- }
---
-2.55.0
-
diff --git a/rust.spec b/rust.spec
index ff0b99d..795be86 100644
--- a/rust.spec
+++ b/rust.spec
@@ -1,11 +1,17 @@
Name: rust
-Version: 1.99.0
+Version: 1.99.1
Release: %autorelease
Summary: The Rust Programming Language
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
# ^ written as: (rust itself) and (bundled libraries)
URL: https://www.rust-lang.org
+# Use `autorelease -p -s YYYYMMDD` for stable prerelease testing, and the
+# source will be set from the corresponding path on upstream's "dev-static"
+# server. Remember to download the final release anew from the normal server!
+
+# Betas may be tested by appending a version suffix like `~beta.1`.
+
# To bootstrap from scratch, set the channel and date from src/stage0
# e.g. 1.89.0 wants rustc: 1.88.0-2025-06-26
# or nightly wants some beta-YYYY-MM-DD
@@ -104,8 +110,22 @@ URL: https://www.rust-lang.org
rpm.define("channel " .. (subs ~= 0 and version_channel or "stable"))
rpm.define("rustc_package rustc-" .. version_channel .. "-src")
end}
-Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
-Source1: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz.asc
+
+# Detect prerelease dates from the release, like 0.1.20261013.fc46,
+# and if found then use upstream's "dev-static" source instead.
+%{lua: do
+ local release = rpm.expand("%{release}")
+ local year, month, day = release:match("^0%.%d+%.(%d%d%d%d)(%d%d)(%d%d)%.")
+ if year then
+ local date = year .. "-" .. month .. "-" .. day
+ rpm.define("source_dist https://dev-static.rust-lang.org/dist/" .. date)
+ else
+ rpm.define("source_dist https://static.rust-lang.org/dist")
+ end
+end}
+
+Source0: %{source_dist}/%{rustc_package}.tar.xz
+Source1: %{source_dist}/%{rustc_package}.tar.xz.asc
Source2: https://static.rust-lang.org/rust-key.gpg.ascii
Source10: %{wasi_libc_source}
@@ -141,9 +161,6 @@ Patch8: 0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
# Ensure llvm worker threads have sufficient stack space. Backport of #163289.
Patch9: 0001-Ensure-llvm-worker-threads-have-sufficient-stack-spa.patch
-# Fix for #160827, uefi targets failing to link due to missing wcslen builtin.
-Patch10: 0001-Add-wcslen-builtin.patch
-
### RHEL-specific patches below ###
# Simple rpm macros for rust-toolset (as opposed to full rust-packaging)
@@ -724,7 +741,6 @@ test "$(cut -d' ' -f1 ./version)" = "%{lua: print((rpm.expand('%version'):gsub('
%patch -P7 -p1
%patch -P8 -p1
%patch -P9 -p1
-%patch -P10 -p1
%if %with disabled_libssh2
%patch -P100 -p1
diff --git a/sources b/sources
index 716f416..c6affef 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (rustc-1.99.0-src.tar.xz) = 64f84f9d2c9531c85bc7d4a775abfddf4c09d852e17993d8c2ad3cf94d0a62ac72228bb452e3f3964a18bb49fa47e9a97ee7ed16ed61533717ba68164abd1fbd
-SHA512 (rustc-1.99.0-src.tar.xz.asc) = 2a8aef98d2cf907b8f1eb8e8113a283caba2037f32f17614cedb15e32990a4a852ff65c97c243c6b17256b39226a789e6597025bfbcdeec221db06af23435b37
+SHA512 (rustc-1.99.1-src.tar.xz) = 641fb7ebb205cc8fc7a05d79f1353ae4aedf5a1080cd3928da51865b6b7ec721c755992c8bfdcc9fe93893dfac15439093e78580e7a78913a7f1db4e3b6f95e8
+SHA512 (rustc-1.99.1-src.tar.xz.asc) = 32659fb251cf8869375f06d7f923ec1e2e3288457360b1c2817216bf5976b969ba3eb73b7bbfc843a3cb84c0459a203711ecfb422510493f6569f809fb4421fd
SHA512 (wasi-libc-wasi-sdk-34.tar.gz) = effe714d3ac75f22780ebe21b5cb7c4240fab72a5b0f1f75ce4cb842d1c60d9a5180ef50ce079d483391360819209e4ecfc22def0fec381d570dd2bdec1011ed
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-15 18:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 18:50 [rpms/rust] f43: Update to Rust 1.99.1 Josh Stone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox