public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Murphy <murp@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust] f45: Update to Rust 1.99
Date: Mon, 05 Oct 2026 19:37:06 GMT	[thread overview]
Message-ID: <179122902656.1.9101485927764737596.rpms-rust-8b7522feb42d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust
            Branch : f45
            Commit : 8b7522feb42d806e636d935ca8b51189fd98cfe9
            Author : Paul Murphy <murp@redhat.com>
            Date   : 2026-10-01T14:48:54-05:00
            Stats  : +497/-170 in 14 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust/c/8b7522feb42d806e636d935ca8b51189fd98cfe9?branch=f45

            Log:
            Update to Rust 1.99

Also, remove npm lockfiles and lists with hopes to minimize javascript
CVE's being opened against the rust package.

---
diff --git a/.gitignore b/.gitignore
index f0e62d4..7965357 100644
--- a/.gitignore
+++ b/.gitignore
@@ -487,3 +487,6 @@
 /wasi-libc-wasi-sdk-33.tar.gz
 /rustc-1.98.1-src.tar.xz
 /rustc-1.98.1-src.tar.xz.asc
+/rustc-1.99.0-src.tar.xz
+/rustc-1.99.0-src.tar.xz.asc
+/wasi-libc-wasi-sdk-34.tar.gz

diff --git a/0001-Add-wcslen-builtin.patch b/0001-Add-wcslen-builtin.patch
new file mode 100644
index 0000000..21374ba
--- /dev/null
+++ b/0001-Add-wcslen-builtin.patch
@@ -0,0 +1,103 @@
+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/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch b/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
index 4ae9290..7508c38 100644
--- a/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
+++ b/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
@@ -1,4 +1,4 @@
-From c9d8b6663ac62ce52f8e893207b56a02a0585533 Mon Sep 17 00:00:00 2001
+From 891fcd5606878f74f4bc7033cb86912b9013dada Mon Sep 17 00:00:00 2001
 From: Josh Stone <jistone@redhat.com>
 Date: Thu, 30 Apr 2026 13:21:13 -0700
 Subject: [PATCH] Enable SHSTK by default on x86_64-unknown-linux-gnu
@@ -16,16 +16,17 @@ Subject: [PATCH] Enable SHSTK by default on x86_64-unknown-linux-gnu
  8 files changed, 69 insertions(+), 49 deletions(-)
 
 diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
-index 621f2cd3f9fc..30a98ac3e1c3 100644
+index 668072ff082..afafdbab482 100644
 --- a/compiler/rustc_codegen_llvm/src/context.rs
 +++ b/compiler/rustc_codegen_llvm/src/context.rs
-@@ -22,12 +22,12 @@
+@@ -21,13 +21,13 @@
+ use rustc_middle::ty::{self, Instance, Ty, TyCtxt};
  use rustc_middle::{bug, span_bug};
- use rustc_session::Session;
  use rustc_session::config::{
 -    BranchProtection, CFGuard, CFProtection, CrateType, DebugInfo, FunctionReturn, PAuthKey, PacRet,
 +    BranchProtection, CFGuard, CrateType, DebugInfo, FunctionReturn, PAuthKey, PacRet,
  };
+ use rustc_session::{PointerAuthSchema, Session};
  use rustc_span::{DUMMY_SP, Span, Spanned, Symbol, sym};
  use rustc_target::spec::{
 -    Arch, CfgAbi, Env, FramePointer, HasTargetSpec, Os, RelocModel, SmallDataThresholdSupport,
@@ -35,7 +36,7 @@ index 621f2cd3f9fc..30a98ac3e1c3 100644
  };
  use smallvec::SmallVec;
  
-@@ -451,7 +451,8 @@ pub(crate) unsafe fn create_module<'ll>(
+@@ -457,7 +457,8 @@ pub(crate) unsafe fn create_module<'ll>(
      }
  
      // Pass on the control-flow protection flags to LLVM (equivalent to `-fcf-protection` in Clang).
@@ -45,7 +46,7 @@ index 621f2cd3f9fc..30a98ac3e1c3 100644
          llvm::add_module_flag_u32(
              llmod,
              llvm::ModuleFlagMergeBehavior::Override,
-@@ -459,7 +460,7 @@ pub(crate) unsafe fn create_module<'ll>(
+@@ -465,7 +466,7 @@ pub(crate) unsafe fn create_module<'ll>(
              1,
          );
      }
@@ -55,10 +56,10 @@ index 621f2cd3f9fc..30a98ac3e1c3 100644
              llmod,
              llvm::ModuleFlagMergeBehavior::Override,
 diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
-index 4492cdf2d2f8..51828f4e824b 100644
+index efbffa8c0e4..591146df524 100644
 --- a/compiler/rustc_session/src/config.rs
 +++ b/compiler/rustc_session/src/config.rs
-@@ -72,22 +72,6 @@ pub enum CFGuard {
+@@ -76,22 +76,6 @@ pub enum CFGuard {
      Checks,
  }
  
@@ -81,7 +82,7 @@ index 4492cdf2d2f8..51828f4e824b 100644
  #[derive(Clone, Copy, Debug, PartialEq, Hash, StableHash, Encodable, Decodable)]
  pub enum OptLevel {
      /// `-Copt-level=0`
-@@ -3088,13 +3072,13 @@ pub(crate) mod dep_tracking {
+@@ -3327,13 +3311,13 @@ pub(crate) mod dep_tracking {
      use rustc_span::edition::Edition;
      use rustc_span::{RealFileName, RemapPathScopeComponents};
      use rustc_target::spec::{
@@ -97,13 +98,13 @@ index 4492cdf2d2f8..51828f4e824b 100644
 -        AnnotateMoves, AutoDiff, BranchProtection, CFGuard, CFProtection, CodegenRetagOptions,
 +        AnnotateMoves, AutoDiff, BranchProtection, CFGuard, CodegenRetagOptions,
          CoverageOptions, CrateType, DebugInfo, DebugInfoCompression, ErrorOutputType, FmtDebug,
-         FunctionReturn, InliningThreshold, InstrumentCoverage, InstrumentMcount, InstrumentXRay,
-         LinkerPluginLto, LocationDetail, LtoCli, MirStripDebugInfo, NextSolverConfig, Offload,
+         FunctionReturn, InliningThreshold, InstrumentCoverage, InstrumentMcount,
+         InstrumentMcountOpts, InstrumentXRay, LinkerPluginLto, LocationDetail, LtoCli,
 diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
-index e8e405f4a3df..412722cab01a 100644
+index 3c3f1d69fe2..395d4f6af12 100644
 --- a/compiler/rustc_session/src/options.rs
 +++ b/compiler/rustc_session/src/options.rs
-@@ -16,9 +16,9 @@
+@@ -17,9 +17,9 @@
  use rustc_span::edition::Edition;
  use rustc_span::{RealFileName, RemapPathScopeComponents, SourceFileHashAlgorithm};
  use rustc_target::spec::{
@@ -116,7 +117,7 @@ index e8e405f4a3df..412722cab01a 100644
  };
  
  use crate::config::*;
-@@ -1314,22 +1314,20 @@ pub(crate) fn parse_cfguard(slot: &mut CFGuard, v: Option<&str>) -> bool {
+@@ -1374,22 +1374,20 @@ pub(crate) fn parse_cfguard(slot: &mut CFGuard, v: Option<&str>) -> bool {
          true
      }
  
@@ -151,7 +152,7 @@ index e8e405f4a3df..412722cab01a 100644
          true
      }
  
-@@ -2310,7 +2308,8 @@ pub(crate) fn parse_rust_version(slot: &mut Option<RustcVersion>, v: Option<&str
+@@ -2401,7 +2399,8 @@ pub(crate) fn parse_rust_version(slot: &mut Option<RustcVersion>, v: Option<&str
          "whether the stable interface is being built"),
      cache_proc_macros: bool = (false, parse_bool, [TRACKED],
          "cache the results of derive proc macro invocations (potentially unsound!) (default: no"),
@@ -162,10 +163,10 @@ index e8e405f4a3df..412722cab01a 100644
      check_cfg_all_expected: bool = (false, parse_bool, [UNTRACKED],
          "show all expected values in check-cfg diagnostics (default: no)"),
 diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs
-index 986dababf770..7252700d0e96 100644
+index 7db30b38f9b..095cc52912e 100644
 --- a/compiler/rustc_session/src/session.rs
 +++ b/compiler/rustc_session/src/session.rs
-@@ -29,9 +29,9 @@
+@@ -27,9 +27,9 @@
  use rustc_span::{RealFileName, Span, Symbol};
  use rustc_target::asm::InlineAsmArch;
  use rustc_target::spec::{
@@ -178,8 +179,8 @@ index 986dababf770..7252700d0e96 100644
  };
  
  use crate::code_stats::CodeStats;
-@@ -775,6 +775,10 @@ pub fn stack_protector(&self) -> StackProtector {
-         }
+@@ -1016,6 +1016,10 @@ pub fn branch_protection(&self) -> Option<BranchProtection> {
+         bp
      }
  
 +    pub fn cf_protection(&self) -> CFProtection {
@@ -190,7 +191,7 @@ index 986dababf770..7252700d0e96 100644
          // This is used to control the emission of the `uwtable` attribute on
          // LLVM functions. The `uwtable` attribute according to LLVM is:
 diff --git a/compiler/rustc_target/src/spec/json.rs b/compiler/rustc_target/src/spec/json.rs
-index 922b1fb3dff8..da14f40f9189 100644
+index 40bf2f664bd..af95fb856b1 100644
 --- a/compiler/rustc_target/src/spec/json.rs
 +++ b/compiler/rustc_target/src/spec/json.rs
 @@ -12,7 +12,7 @@
@@ -202,7 +203,7 @@ index 922b1fb3dff8..da14f40f9189 100644
  
  impl Target {
      /// Loads a target descriptor from a JSON object.
-@@ -225,6 +225,7 @@ macro_rules! forward_opt {
+@@ -227,6 +227,7 @@ macro_rules! forward_opt {
          forward!(entry_name);
          forward!(supports_fentry);
          forward!(supports_xray);
@@ -210,7 +211,7 @@ index 922b1fb3dff8..da14f40f9189 100644
  
          // we're going to run `update_from_cli`, but that won't change the target's AbiMap
          // FIXME: better factor the Target definition so we enforce this on a type level
-@@ -410,6 +411,7 @@ macro_rules! target_option_val {
+@@ -414,6 +415,7 @@ macro_rules! target_option_val {
          target_option_val!(entry_abi);
          target_option_val!(supports_fentry);
          target_option_val!(supports_xray);
@@ -218,7 +219,7 @@ index 922b1fb3dff8..da14f40f9189 100644
  
          // Serializing `-Clink-self-contained` needs a dynamic key to support the
          // backwards-compatible variants.
-@@ -631,6 +633,7 @@ struct TargetSpecJson {
+@@ -638,6 +640,7 @@ struct TargetSpecJson {
      supports_fentry: Option<bool>,
      supports_xray: Option<bool>,
      entry_abi: Option<ExternAbiWrapper>,
@@ -227,10 +228,10 @@ index 922b1fb3dff8..da14f40f9189 100644
  
  pub fn json_schema() -> schemars::Schema {
 diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
-index 5c19b35e1605..87968b47d84a 100644
+index 60afc22f35d..0f7e5f7c9b5 100644
 --- a/compiler/rustc_target/src/spec/mod.rs
 +++ b/compiler/rustc_target/src/spec/mod.rs
-@@ -1357,6 +1357,26 @@ pub enum StackProtector {
+@@ -1358,6 +1358,26 @@ pub enum StackProtector {
  
  into_diag_arg_using_display!(StackProtector);
  
@@ -257,7 +258,7 @@ index 5c19b35e1605..87968b47d84a 100644
  crate::target_spec_enum! {
      pub enum BinaryFormat {
          Coff = "coff",
-@@ -2691,6 +2711,9 @@ pub struct TargetOptions {
+@@ -2719,6 +2739,9 @@ pub struct TargetOptions {
      /// since this is most common among tier 1 and tier 2 targets.
      pub supports_stack_protector: bool,
  
@@ -267,7 +268,7 @@ index 5c19b35e1605..87968b47d84a 100644
      /// The name of entry function.
      /// Default value is "main"
      pub entry_name: StaticCow<str>,
-@@ -2941,6 +2964,7 @@ fn default() -> TargetOptions {
+@@ -2971,6 +2994,7 @@ fn default() -> TargetOptions {
              c_enum_min_bits: None,
              generate_arange_section: true,
              supports_stack_protector: true,
@@ -276,7 +277,7 @@ index 5c19b35e1605..87968b47d84a 100644
              entry_abi: CanonAbi::C,
              supports_fentry: false,
 diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
-index 0d87a7b760c6..03a9d644e1ec 100644
+index f8556b3415d..e32c2570266 100644
 --- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
 +++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
 @@ -1,5 +1,6 @@
@@ -287,7 +288,7 @@ index 0d87a7b760c6..03a9d644e1ec 100644
  };
  
  pub(crate) fn target() -> Target {
-@@ -22,6 +23,10 @@ pub(crate) fn target() -> Target {
+@@ -21,6 +22,10 @@ pub(crate) fn target() -> Target {
      base.supports_fentry = true;
      base.supports_xray = true;
  
@@ -299,7 +300,7 @@ index 0d87a7b760c6..03a9d644e1ec 100644
          llvm_target: "x86_64-unknown-linux-gnu".into(),
          metadata: TargetMetadata {
 diff --git a/tests/codegen-llvm/cf-protection.rs b/tests/codegen-llvm/cf-protection.rs
-index a1c902755afb..b233b241a01f 100644
+index a1c902755af..b233b241a01 100644
 --- a/tests/codegen-llvm/cf-protection.rs
 +++ b/tests/codegen-llvm/cf-protection.rs
 @@ -21,7 +21,7 @@

diff --git a/0001-Ensure-llvm-worker-threads-have-sufficient-stack-spa.patch b/0001-Ensure-llvm-worker-threads-have-sufficient-stack-spa.patch
new file mode 100644
index 0000000..da72a65
--- /dev/null
+++ b/0001-Ensure-llvm-worker-threads-have-sufficient-stack-spa.patch
@@ -0,0 +1,209 @@
+From 2784f1c7779b80950c375b1625d9324aaafea14e Mon Sep 17 00:00:00 2001
+From: Paul Murphy <murp@redhat.com>
+Date: Thu, 24 Sep 2026 14:07:24 -0500
+Subject: [PATCH] Ensure llvm worker threads have sufficient stack space
+
+The rustc driver sets the default stack size to 16MB, however
+worker threads spawned by the backend will use std's default
+stack size (usually 2MB).
+
+Pass through the stack size chosen by the driver to the backend,
+and explicitly request the stack size.
+---
+ compiler/rustc_codegen_ssa/src/back/write.rs | 23 ++++++++++++++++++--
+ compiler/rustc_interface/src/interface.rs    |  3 +++
+ compiler/rustc_interface/src/util.rs         |  2 +-
+ compiler/rustc_session/src/config.rs         |  5 +++++
+ compiler/rustc_session/src/options.rs        |  1 +
+ 5 files changed, 31 insertions(+), 3 deletions(-)
+
+diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs
+index 2eaceb68a67..9dd53bdf91d 100644
+--- a/compiler/rustc_codegen_ssa/src/back/write.rs
++++ b/compiler/rustc_codegen_ssa/src/back/write.rs
+@@ -1006,6 +1006,7 @@ fn do_thin_lto<B: WriteBackendMethods>(
+     exported_symbols_for_lto: &[String],
+     each_linked_rlib_for_lto: &[PathBuf],
+     needs_thin_lto: Vec<ThinLtoInput<B>>,
++    stack_size: usize,
+ ) -> Vec<CompiledModule> {
+     let _timer = prof.verbose_generic_activity("LLVM_thinlto");
+ 
+@@ -1096,6 +1097,7 @@ fn do_thin_lto<B: WriteBackendMethods>(
+                     Arc::clone(&tm_factory),
+                     coordinator_send.clone(),
+                     item,
++                    stack_size,
+                 );
+                 used_token_count += 1;
+             }
+@@ -1290,6 +1292,8 @@ fn start_executing_work<B: WriteBackendMethods>(
+         None
+     };
+ 
++    let stack_size = sess.opts.recommended_stack_size;
++
+     let cgcx = CodegenContext {
+         crate_types: tcx.crate_types().to_vec(),
+         lto: sess.lto(),
+@@ -1548,6 +1552,7 @@ enum CodegenState {
+                             coordinator_send.clone(),
+                             &mut llvm_start_time,
+                             item,
++                            stack_size,
+                         );
+                     }
+                 }
+@@ -1573,6 +1578,7 @@ enum CodegenState {
+                                 coordinator_send.clone(),
+                                 &mut llvm_start_time,
+                                 item,
++                                stack_size,
+                             );
+                         } else {
+                             // There is no unstarted work, so let the main thread
+@@ -1616,6 +1622,7 @@ enum CodegenState {
+                         coordinator_send.clone(),
+                         &mut llvm_start_time,
+                         item,
++                        stack_size,
+                     );
+                     running_with_own_token += 1;
+                 }
+@@ -1784,6 +1791,7 @@ enum CodegenState {
+                     &exported_symbols_for_lto,
+                     &[],
+                     needs_thin_lto,
++                    stack_size,
+                 ));
+             } else {
+                 if let Some(allocator_module) = allocator_module.take() {
+@@ -1879,6 +1887,7 @@ fn spawn_work<'a, B: WriteBackendMethods>(
+     coordinator_send: Sender<Message<B>>,
+     llvm_start_time: &mut Option<VerboseTimingGuard<'a>>,
+     work: WorkItem<B>,
++    stack_size: usize,
+ ) {
+     if llvm_start_time.is_none() {
+         *llvm_start_time = Some(prof.verbose_generic_activity("LLVM_passes"));
+@@ -1912,7 +1921,11 @@ fn spawn_work<'a, B: WriteBackendMethods>(
+         };
+         drop(coordinator_send.send(msg));
+     };
+-    std::thread::Builder::new().name(name).spawn(f).expect("failed to spawn work thread");
++    std::thread::Builder::new()
++        .name(name)
++        .stack_size(stack_size)
++        .spawn(f)
++        .expect("failed to spawn work thread");
+ }
+ 
+ fn spawn_thin_lto_work<B: WriteBackendMethods>(
+@@ -1922,6 +1935,7 @@ fn spawn_thin_lto_work<B: WriteBackendMethods>(
+     tm_factory: TargetMachineFactoryFn<B>,
+     coordinator_send: Sender<ThinLtoMessage>,
+     work: ThinLtoWorkItem<B>,
++    stack_size: usize,
+ ) {
+     let cgcx = cgcx.clone();
+     let prof = prof.clone();
+@@ -1954,7 +1968,11 @@ fn spawn_thin_lto_work<B: WriteBackendMethods>(
+         };
+         drop(coordinator_send.send(msg));
+     };
+-    std::thread::Builder::new().name(name).spawn(f).expect("failed to spawn work thread");
++    std::thread::Builder::new()
++        .name(name)
++        .stack_size(stack_size)
++        .spawn(f)
++        .expect("failed to spawn work thread");
+ }
+ 
+ enum SharedEmitterMessage {
+@@ -2204,6 +2222,7 @@ pub fn join(
+                         &crate_info.exported_symbols_for_lto,
+                         &crate_info.each_linked_rlib_file_for_lto,
+                         needs_thin_lto,
++                        sess.opts.recommended_stack_size,
+                     ),
+                     allocator_module: None,
+                 }
+diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs
+index 2737d2ca854..3167a312a9f 100644
+--- a/compiler/rustc_interface/src/interface.rs
++++ b/compiler/rustc_interface/src/interface.rs
+@@ -442,6 +442,9 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
+             sess.fallback_intrinsics = FxHashSet::from_iter(codegen_backend.fallback_intrinsics());
+             sess.thin_lto_supported = codegen_backend.thin_lto_supported();
+ 
++            // STACK_SIZE is setup in run_in_thread_pool_with_globals, before arriving here.
++            sess.opts.recommended_stack_size = *util::STACK_SIZE.get().unwrap();
++
+             let cfg = parse_cfg(sess.dcx(), config.crate_cfg);
+             let mut cfg = config::build_configuration(&sess, cfg);
+             util::add_configuration(&mut cfg, &mut sess, &*codegen_backend);
+diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs
+index 23b152bd572..8095cae1e85 100644
+--- a/compiler/rustc_interface/src/util.rs
++++ b/compiler/rustc_interface/src/util.rs
+@@ -21,6 +21,7 @@
+ use rustc_middle::dep_graph::WorkProductMap;
+ use rustc_middle::ty::{CurrentGcx, TyCtxt};
+ use rustc_query_impl::{CollectActiveJobsKind, collect_active_query_jobs};
++pub use rustc_session::config::DEFAULT_STACK_SIZE;
+ use rustc_session::config::{
+     Cfg, CrateType, Jobs, OutFileName, OutputFilenames, OutputTypes, Sysroot, host_tuple,
+ };
+@@ -121,7 +122,6 @@ pub(crate) fn check_abi_required_features(sess: &Session) {
+ }
+ 
+ pub static STACK_SIZE: OnceLock<usize> = OnceLock::new();
+-pub const DEFAULT_STACK_SIZE: usize = 16 * 1024 * 1024;
+ 
+ fn init_stack_size(early_dcx: &EarlyDiagCtxt) -> usize {
+     // Obey the environment setting or default
+diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
+index efbffa8c0e4..3f3fc1f2c93 100644
+--- a/compiler/rustc_session/src/config.rs
++++ b/compiler/rustc_session/src/config.rs
+@@ -47,6 +47,9 @@
+ mod print_request;
+ pub mod sigpipe;
+ 
++/// A recommended stack size for worker threads spawned within a session.
++pub const DEFAULT_STACK_SIZE: usize = 17 * 1024 * 1024;
++
+ /// Special CPU name requesting the CPU of the current host.
+ pub const NATIVE_CPU: &str = "native";
+ 
+@@ -1491,6 +1494,7 @@ fn default() -> Options {
+             target_modifiers: BTreeMap::default(),
+             mitigation_coverage_map: Default::default(),
+             jobs: Jobs { frontend: None, backend: None, linker: LinkerJobs::Default },
++            recommended_stack_size: DEFAULT_STACK_SIZE,
+         }
+     }
+ }
+@@ -3066,6 +3070,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
+         target_modifiers: collected_options.target_modifiers,
+         mitigation_coverage_map: collected_options.mitigations,
+         jobs,
++        recommended_stack_size: DEFAULT_STACK_SIZE,
+     }
+ }
+ 
+diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
+index 3c3f1d69fe2..3d99d2bb6db 100644
+--- a/compiler/rustc_session/src/options.rs
++++ b/compiler/rustc_session/src/options.rs
+@@ -436,6 +436,7 @@ pub struct Options {
+         color: ColorConfig [UNTRACKED],
+         verbose: bool [TRACKED_NO_CRATE_HASH],
+         jobs: Jobs [UNTRACKED],
++        recommended_stack_size: usize [UNTRACKED],
+     }
+ );
+ 
+-- 
+2.55.0
+

diff --git a/0001-bootstrap-allow-disabling-target-self-contained.patch b/0001-bootstrap-allow-disabling-target-self-contained.patch
index ca811e9..dde482b 100644
--- a/0001-bootstrap-allow-disabling-target-self-contained.patch
+++ b/0001-bootstrap-allow-disabling-target-self-contained.patch
@@ -1,4 +1,4 @@
-From 5e8b069a530092bf57dc19d8f6e5df85db1bd7d3 Mon Sep 17 00:00:00 2001
+From 455a2d207713e677828e8913a3bfe1e5d0e44fb1 Mon Sep 17 00:00:00 2001
 From: Josh Stone <jistone@redhat.com>
 Date: Mon, 18 Aug 2025 17:11:07 -0700
 Subject: [PATCH 1/2] bootstrap: allow disabling target self-contained
@@ -12,10 +12,10 @@ Subject: [PATCH 1/2] bootstrap: allow disabling target self-contained
  5 files changed, 23 insertions(+)
 
 diff --git a/bootstrap.example.toml b/bootstrap.example.toml
-index 4e850810a30..a3ae9251cf5 100644
+index 418c5a4a9cb..9b5c6c6ff82 100644
 --- a/bootstrap.example.toml
 +++ b/bootstrap.example.toml
-@@ -1102,3 +1102,8 @@
+@@ -1217,3 +1217,8 @@
  # pass `off`:
  # - x86_64-unknown-linux-gnu
  #default-linker-linux-override = "off" (for most targets)
@@ -25,10 +25,10 @@ index 4e850810a30..a3ae9251cf5 100644
 +# targets may ignore this setting if they have nothing to be contained.
 +#self-contained = <platform-specific> (bool)
 diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
-index 02940a80295..f3e7cbafc49 100644
+index 6b659206fbc..60fd83a6e0c 100644
 --- a/src/bootstrap/src/core/build_steps/compile.rs
 +++ b/src/bootstrap/src/core/build_steps/compile.rs
-@@ -370,6 +370,10 @@ fn copy_self_contained_objects(
+@@ -377,6 +377,10 @@ fn copy_self_contained_objects(
      compiler: &Compiler,
      target: TargetSelection,
  ) -> Vec<(PathBuf, DependencyType)> {
@@ -40,18 +40,18 @@ index 02940a80295..f3e7cbafc49 100644
          builder.sysroot_target_libdir(*compiler, target).join("self-contained");
      t!(fs::create_dir_all(&libdir_self_contained));
 diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
-index 2f493658ec0..d1ceea0296e 100644
+index 20319e4f400..dc73140dc0f 100644
 --- a/src/bootstrap/src/core/config/config.rs
 +++ b/src/bootstrap/src/core/config/config.rs
-@@ -877,6 +877,7 @@ pub(crate) fn parse_inner(
-                     runner: target_runner,
+@@ -980,6 +980,7 @@ pub(crate) fn parse_inner(
                      optimized_compiler_builtins: target_optimized_compiler_builtins,
+                     allocator: target_allocator,
                      jemalloc: target_jemalloc,
 +                    self_contained: target_self_contained
                  } = cfg;
  
                  let mut target = Target::from_triple(&triple);
-@@ -934,6 +935,9 @@ pub(crate) fn parse_inner(
+@@ -1037,6 +1038,9 @@ pub(crate) fn parse_inner(
                  if let Some(s) = target_no_std {
                      target.no_std = s;
                  }
@@ -62,26 +62,26 @@ index 2f493658ec0..d1ceea0296e 100644
                  target.cxx = target_cxx.map(PathBuf::from);
                  target.ar = target_ar.map(PathBuf::from);
 diff --git a/src/bootstrap/src/core/config/toml/target.rs b/src/bootstrap/src/core/config/toml/target.rs
-index 847b75e696b..cbe36106a6f 100644
+index 32e0477f118..191131a2aad 100644
 --- a/src/bootstrap/src/core/config/toml/target.rs
 +++ b/src/bootstrap/src/core/config/toml/target.rs
-@@ -48,6 +48,7 @@ struct TomlTarget {
-         runner: Option<String> = "runner",
+@@ -51,6 +51,7 @@ struct TomlTarget {
          optimized_compiler_builtins: Option<CompilerBuiltins> = "optimized-compiler-builtins",
+         allocator: Option<Allocator> = "allocator",
          jemalloc: Option<bool> = "jemalloc",
 +        self_contained: Option<bool> = "self-contained",
      }
  }
  
-@@ -82,6 +83,7 @@ pub struct Target {
+@@ -86,6 +87,7 @@ pub struct Target {
      pub codegen_backends: Option<Vec<CodegenBackendKind>>,
      pub optimized_compiler_builtins: Option<CompilerBuiltins>,
-     pub jemalloc: Option<bool>,
+     pub allocator: Option<Allocator>,
 +    pub self_contained: bool,
  }
  
  impl Target {
-@@ -93,6 +95,9 @@ pub fn from_triple(triple: &str) -> Self {
+@@ -97,6 +99,9 @@ pub fn from_triple(triple: &str) -> Self {
          if triple.contains("emscripten") {
              target.runner = Some("node".into());
          }
@@ -92,10 +92,10 @@ index 847b75e696b..cbe36106a6f 100644
      }
  }
 diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
-index a31eb0c1c80..ca28b2cb0d9 100644
+index eb68daa0cf0..2bdd5554aab 100644
 --- a/src/bootstrap/src/lib.rs
 +++ b/src/bootstrap/src/lib.rs
-@@ -1448,6 +1448,11 @@ fn no_std(&self, target: TargetSelection) -> Option<bool> {
+@@ -1399,6 +1399,11 @@ fn no_std(&self, target: TargetSelection) -> Option<bool> {
          self.config.target_config.get(&target).map(|t| t.no_std)
      }
  
@@ -108,5 +108,5 @@ index a31eb0c1c80..ca28b2cb0d9 100644
      /// and `remote-test-server` binaries.
      fn remote_tested(&self, target: TargetSelection) -> bool {
 -- 
-2.51.1
+2.55.0
 

diff --git a/0002-set-an-external-library-path-for-wasm32-wasi.patch b/0002-set-an-external-library-path-for-wasm32-wasi.patch
index 871f613..457a556 100644
--- a/0002-set-an-external-library-path-for-wasm32-wasi.patch
+++ b/0002-set-an-external-library-path-for-wasm32-wasi.patch
@@ -1,33 +1,34 @@
-From 51178db0fd3d40917a78e4b039c0412bcd332e31 Mon Sep 17 00:00:00 2001
+From 5bc5c5bf247e0311846255cfd73eb4ebf7a7bc9d Mon Sep 17 00:00:00 2001
 From: Josh Stone <jistone@redhat.com>
 Date: Mon, 18 Aug 2025 17:13:28 -0700
 Subject: [PATCH 2/2] set an external library path for wasm32-wasi
 
 ---
- compiler/rustc_codegen_ssa/src/back/link.rs            | 10 ++++++++++
- compiler/rustc_target/src/spec/json.rs                 |  4 ++++
- compiler/rustc_target/src/spec/mod.rs                  |  2 ++
- .../rustc_target/src/spec/targets/wasm32_wasip1.rs     |  7 ++++---
- 4 files changed, 20 insertions(+), 3 deletions(-)
+ compiler/rustc_codegen_ssa/src/back/link.rs           | 11 ++++++++++-
+ compiler/rustc_target/src/spec/json.rs                |  4 ++++
+ compiler/rustc_target/src/spec/mod.rs                 |  2 ++
+ .../rustc_target/src/spec/targets/wasm32_wasip1.rs    |  7 ++++---
+ 4 files changed, 20 insertions(+), 4 deletions(-)
 
 diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
-index d35c3b6bb18..f2a067a9e8c 100644
+index 014e3ee8bd3..d2ddf6e3e43 100644
 --- a/compiler/rustc_codegen_ssa/src/back/link.rs
 +++ b/compiler/rustc_codegen_ssa/src/back/link.rs
-@@ -1565,6 +1565,12 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
+@@ -2076,7 +2076,12 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
              return file_path;
          }
      }
+-
 +    if let Some(lib_path) = &sess.target.options.external_lib_path {
 +        let file_path = Path::new(lib_path.as_ref()).join(name);
 +        if file_path.exists() {
 +            return file_path;
 +        }
 +    }
+     // Note: this is O(n^2), it could be expensive-ish if we lookup many object files for many
+     // search paths
      for search_path in sess.target_filesearch().search_paths(PathKind::Native) {
-         let file_path = search_path.dir.join(name);
-         if file_path.exists() {
-@@ -2142,6 +2148,10 @@ fn add_library_search_dirs(
+@@ -2702,6 +2707,10 @@ fn add_library_search_dirs(
          }
          ControlFlow::<()>::Continue(())
      });
@@ -39,10 +40,10 @@ index d35c3b6bb18..f2a067a9e8c 100644
  
  /// Add options making relocation sections in the produced ELF files read-only
 diff --git a/compiler/rustc_target/src/spec/json.rs b/compiler/rustc_target/src/spec/json.rs
-index a972299deea..b3a6fe7c5ac 100644
+index 03dbbcb5b48..40bf2f664bd 100644
 --- a/compiler/rustc_target/src/spec/json.rs
 +++ b/compiler/rustc_target/src/spec/json.rs
-@@ -81,6 +81,7 @@ macro_rules! forward_opt {
+@@ -79,6 +79,7 @@ macro_rules! forward_opt {
          forward!(linker_is_gnu_json);
          forward!(pre_link_objects);
          forward!(post_link_objects);
@@ -50,7 +51,7 @@ index a972299deea..b3a6fe7c5ac 100644
          forward!(pre_link_objects_self_contained);
          forward!(post_link_objects_self_contained);
  
-@@ -308,6 +309,7 @@ macro_rules! target_option_val {
+@@ -309,6 +310,7 @@ macro_rules! target_option_val {
          target_option_val!(linker_is_gnu_json, "linker-is-gnu");
          target_option_val!(pre_link_objects);
          target_option_val!(post_link_objects);
@@ -58,7 +59,7 @@ index a972299deea..b3a6fe7c5ac 100644
          target_option_val!(pre_link_objects_self_contained, "pre-link-objects-fallback");
          target_option_val!(post_link_objects_self_contained, "post-link-objects-fallback");
          target_option_val!(link_args - pre_link_args_json, "pre-link-args");
-@@ -520,6 +522,8 @@ struct TargetSpecJson {
+@@ -522,6 +524,8 @@ struct TargetSpecJson {
      pre_link_objects: Option<CrtObjects>,
      #[serde(rename = "post-link-objects")]
      post_link_objects: Option<CrtObjects>,
@@ -68,10 +69,10 @@ index a972299deea..b3a6fe7c5ac 100644
      pre_link_objects_self_contained: Option<CrtObjects>,
      #[serde(rename = "post-link-objects-fallback")]
 diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
-index 424026bdcea..3e0d565b00d 100644
+index 97c8db07807..60afc22f35d 100644
 --- a/compiler/rustc_target/src/spec/mod.rs
 +++ b/compiler/rustc_target/src/spec/mod.rs
-@@ -2218,6 +2218,7 @@ pub struct TargetOptions {
+@@ -2359,6 +2359,7 @@ pub struct TargetOptions {
      /// Objects to link before and after all other object code.
      pub pre_link_objects: CrtObjects,
      pub post_link_objects: CrtObjects,
@@ -79,7 +80,7 @@ index 424026bdcea..3e0d565b00d 100644
      /// Same as `(pre|post)_link_objects`, but when self-contained linking mode is enabled.
      pub pre_link_objects_self_contained: CrtObjects,
      pub post_link_objects_self_contained: CrtObjects,
-@@ -2758,6 +2759,7 @@ fn default() -> TargetOptions {
+@@ -2906,6 +2907,7 @@ fn default() -> TargetOptions {
              relro_level: RelroLevel::None,
              pre_link_objects: Default::default(),
              post_link_objects: Default::default(),
@@ -88,7 +89,7 @@ index 424026bdcea..3e0d565b00d 100644
              post_link_objects_self_contained: Default::default(),
              link_self_contained: LinkSelfContainedDefault::False,
 diff --git a/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs b/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
-index 2d3dd0862d6..130ce1f225a 100644
+index 0983327d333..1ebefac1666 100644
 --- a/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
 +++ b/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
 @@ -22,11 +22,12 @@ pub(crate) fn target() -> Target {
@@ -108,5 +109,5 @@ index 2d3dd0862d6..130ce1f225a 100644
      // Right now this is a bit of a workaround but we're currently saying that
      // the target by default has a static crt which we're taking as a signal
 -- 
-2.51.1
+2.55.0
 

diff --git a/rust.spec b/rust.spec
index 21f2f0c..ff0b99d 100644
--- a/rust.spec
+++ b/rust.spec
@@ -1,5 +1,5 @@
 Name:           rust
-Version:        1.98.1
+Version:        1.99.0
 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)
@@ -9,9 +9,9 @@ URL:            https://www.rust-lang.org
 # 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
-%global bootstrap_version 1.97.1
-%global bootstrap_channel 1.97.1
-%global bootstrap_date 2026-07-16
+%global bootstrap_version 1.98.0
+%global bootstrap_channel 1.98.0
+%global bootstrap_date 2026-08-20
 
 # Only the specified arches will use bootstrap binaries.
 # NOTE: Those binaries used to be uploaded with every new release, but that was
@@ -23,7 +23,7 @@ URL:            https://www.rust-lang.org
 # We need CRT files for *-wasi targets, at least as new as the commit in
 # src/ci/docker/host-x86_64/dist-various-2/build-wasi-toolchain.sh
 %global wasi_libc_url https://github.com/WebAssembly/wasi-libc
-%global wasi_libc_ref wasi-sdk-33
+%global wasi_libc_ref wasi-sdk-34
 %global wasi_libc_name wasi-libc-%{wasi_libc_ref}
 %global wasi_libc_source %{wasi_libc_url}/archive/%{wasi_libc_ref}/%{wasi_libc_name}.tar.gz
 %global wasi_libc_dir %{_builddir}/%{wasi_libc_name}
@@ -41,16 +41,16 @@ URL:            https://www.rust-lang.org
 # See src/bootstrap/src/core/build_steps/llvm.rs, fn check_llvm_version
 # See src/llvm-project/cmake/Modules/LLVMVersion.cmake for bundled version.
 %global min_llvm_version 21.0.0
-%global bundled_llvm_version 22.1.8
+%global bundled_llvm_version 23.1.1
 #global llvm_compat_version 21
 %global llvm llvm%{?llvm_compat_version}
 %bcond_with bundled_llvm
 
 # Requires stable libgit2 1.9, and not the next minor soname change.
 # This needs to be consistent with the bindings in vendor/libgit2-sys.
-%global min_libgit2_version 1.9.4
+%global min_libgit2_version 1.9.6
 %global next_libgit2_version 1.10.0~
-%global bundled_libgit2_version 1.9.4
+%global bundled_libgit2_version 1.9.6
 %if 0%{?fedora} >= 41
 %bcond_with bundled_libgit2
 %else
@@ -116,7 +116,7 @@ Source10:        %{wasi_libc_source}
 Patch1:         0001-Use-lld-provided-by-system.patch
 
 # Set a substitute-path in rust-gdb for standard library sources.
-Patch2:         rustc-1.70.0-rust-gdb-substitute-path.patch
+Patch2:         rustc-1.99.0-rust-gdb-substitute-path.patch
 
 # Override default target CPUs to match distro settings
 # TODO: upstream this ability into the actual build configuration
@@ -129,7 +129,7 @@ Patch4:         0001-bootstrap-allow-disabling-target-self-contained.patch
 Patch5:         0002-set-an-external-library-path-for-wasm32-wasi.patch
 
 # We don't want to use the bundled library in libsqlite3-sys
-Patch6:         rustc-1.98.0-unbundle-sqlite.patch
+Patch6:         rustc-1.99.0-unbundle-sqlite.patch
 
 # stage0 tries to copy all of /usr/lib, sometimes unsuccessfully, see #143735
 Patch7:         0001-only-copy-rustlib-into-stage0-sysroot.patch
@@ -138,6 +138,12 @@ Patch7:         0001-only-copy-rustlib-into-stage0-sysroot.patch
 # This patch enables `-Zcf-protection=return` for SHSTK by default
 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)
@@ -147,7 +153,7 @@ Source102:      cargo_vendor.attr
 Source103:      cargo_vendor.prov
 
 # Disable cargo->libgit2->libssh2 on RHEL, as it's not approved for FIPS (rhbz1732949)
-Patch100:       rustc-1.98.0-disable-libssh2.patch
+Patch100:       rustc-1.99.0-disable-libssh2.patch
 
 # Get the Rust triple for any architecture and ABI.
 %{lua: function rust_triple(arch, abi)
@@ -717,6 +723,8 @@ test "$(cut -d' ' -f1 ./version)" = "%{lua: print((rpm.expand('%version'):gsub('
 %endif
 %patch -P7 -p1
 %patch -P8 -p1
+%patch -P9 -p1
+%patch -P10 -p1
 
 %if %with disabled_libssh2
 %patch -P100 -p1
@@ -764,6 +772,10 @@ rm -rf src/tools/rustc-perf/collector/*-benchmarks/
 rm -rf vendor/libssh2-sys*/
 %endif
 
+# (hopefully) minimize security scanners picking up false javascript positives by
+# removing references to unused npm packages.
+find '(' -name package-lock.json -or -name yarn.lock ')' -delete -print
+
 # This only affects the transient rust-installer, but let it use our dynamic xz-libs
 sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/src/core/build_steps/tool.rs
 
@@ -911,6 +923,7 @@ test -r "%{optimized_builtins}"
   --set build.jobs=%_smp_build_ncpus \
   --set build.build-stage=2 \
   --set build.doc-stage=2 \
+  --set build.gdb="discover" \
   --set build.install-stage=2 \
   --set build.test-stage=2 \
   --set build.optimized-compiler-builtins=false \

diff --git a/rustc-1.70.0-rust-gdb-substitute-path.patch b/rustc-1.70.0-rust-gdb-substitute-path.patch
deleted file mode 100644
index e9e5e2e..0000000
--- a/rustc-1.70.0-rust-gdb-substitute-path.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb
-index 9abed30ea6f7..e4bf55df3688 100755
---- a/src/etc/rust-gdb
-+++ b/src/etc/rust-gdb
-@@ -13,8 +13,6 @@ fi
- # Find out where the pretty printer Python module is
- RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
- GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
--# Get the commit hash for path remapping
--RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \([a-zA-Z0-9_]*\)/\1/p')"
- 
- # Run GDB with the additional arguments that load the pretty printers
- # Set the environment variable `RUST_GDB` to overwrite the call to a
-@@ -23,6 +21,6 @@ RUST_GDB="${RUST_GDB:-gdb}"
- PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \
-   --directory="$GDB_PYTHON_MODULE_DIRECTORY" \
-   -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
--  -iex "set substitute-path /rustc/$RUSTC_COMMIT_HASH $RUSTC_SYSROOT/lib/rustlib/src/rust" \
-+  -iex "set substitute-path @BUILDDIR@ $RUSTC_SYSROOT/lib/rustlib/src/rust" \
-   "$@"
-  

diff --git a/rustc-1.98.0-disable-libssh2.patch b/rustc-1.98.0-disable-libssh2.patch
deleted file mode 100644
index 0c417b0..0000000
--- a/rustc-1.98.0-disable-libssh2.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
---- rustc-beta-src/src/tools/cargo/Cargo.lock.orig	2026-07-14 04:11:08.000000000 -0700
-+++ rustc-beta-src/src/tools/cargo/Cargo.lock	2026-07-16 16:04:08.643705052 -0700
-@@ -3016,7 +3016,6 @@ checksum = "005d6ae6eac1912906073e069f7d
- dependencies = [
-  "cc",
-  "libc",
-- "libssh2-sys",
-  "libz-sys",
-  "openssl-sys",
-  "pkg-config",
-@@ -3052,20 +3051,6 @@ dependencies = [
-  "pkg-config",
-  "vcpkg",
- ]
--
--[[package]]
--name = "libssh2-sys"
--version = "0.3.2"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "c04141a07bb0c0bc461cb657808764de571702a59bc5c726c400ac9a7625e3ab"
--dependencies = [
-- "cc",
-- "libc",
-- "libz-sys",
-- "openssl-sys",
-- "pkg-config",
-- "vcpkg",
--]
- 
- [[package]]
- name = "libz-sys"
-diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
---- rustc-beta-src/src/tools/cargo/Cargo.toml.orig	2026-07-14 04:11:08.000000000 -0700
-+++ rustc-beta-src/src/tools/cargo/Cargo.toml	2026-07-16 16:05:21.304734301 -0700
-@@ -51,7 +51,7 @@ filetime = "0.2.27"
- flate2 = { version = "1.1.9", default-features = false, features = ["zlib-rs"] }
- futures = { version = "0.3.32", default-features = false, features = ["std", "executor", "async-await"]}
- futures-timer = "3.0.3"
--git2 = { version = "0.21.0", features = ["https", "ssh"] }
-+git2 = { version = "0.21.0", features = ["https"] }
- git2-curl = "0.22.0"
- # When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
- gix = { version = "0.85.0", default-features = false, features = ["sha1", "progress-tree", "parallel", "dirwalk", "status"] }

diff --git a/rustc-1.98.0-unbundle-sqlite.patch b/rustc-1.98.0-unbundle-sqlite.patch
deleted file mode 100644
index 7f251a1..0000000
--- a/rustc-1.98.0-unbundle-sqlite.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
---- rustc-beta-src/src/tools/cargo/Cargo.lock.orig	2026-07-14 04:11:08.000000000 -0700
-+++ rustc-beta-src/src/tools/cargo/Cargo.lock	2026-07-16 15:59:08.915377705 -0700
-@@ -3048,7 +3048,6 @@ version = "0.38.1"
- source = "registry+https://github.com/rust-lang/crates.io-index"
- checksum = "f6c19a05435c21ac299d71b6a9c13db3e3f47c520517d58990a462a1397a61db"
- dependencies = [
-- "cc",
-  "pkg-config",
-  "vcpkg",
- ]
-diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
---- rustc-beta-src/src/tools/cargo/Cargo.toml.orig	2026-07-14 04:11:08.000000000 -0700
-+++ rustc-beta-src/src/tools/cargo/Cargo.toml	2026-07-16 15:59:06.072443578 -0700
-@@ -88,7 +88,7 @@ proptest = "1.11.0"
- pulldown-cmark = { version = "0.13.3", default-features = false, features = ["html"] }
- rand = "0.10.1"
- regex = "1.12.3"
--rusqlite = { version = "0.40.0", features = ["bundled"] }
-+rusqlite = { version = "0.40.0", features = [] }
- rustc-hash = "2.1.2"
- rustc-stable-hash = "0.1.2"
- rustfix = { version = "0.9.7", path = "crates/rustfix" }

diff --git a/rustc-1.99.0-disable-libssh2.patch b/rustc-1.99.0-disable-libssh2.patch
new file mode 100644
index 0000000..a598040
--- /dev/null
+++ b/rustc-1.99.0-disable-libssh2.patch
@@ -0,0 +1,42 @@
+--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig	2026-08-31 17:22:58.354582255 -0500
++++ rustc-beta-src/src/tools/cargo/Cargo.lock	2026-08-31 17:23:35.153103977 -0500
+@@ -3017,7 +3017,6 @@ checksum = "23c7391e4b9f4ffab1a624223cc1
+ dependencies = [
+  "cc",
+  "libc",
+- "libssh2-sys",
+  "libz-sys",
+  "openssl-sys",
+  "pkg-config",
+@@ -3052,20 +3051,6 @@ dependencies = [
+  "pkg-config",
+  "vcpkg",
+ ]
+-
+-[[package]]
+-name = "libssh2-sys"
+-version = "0.3.2"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "c04141a07bb0c0bc461cb657808764de571702a59bc5c726c400ac9a7625e3ab"
+-dependencies = [
+- "cc",
+- "libc",
+- "libz-sys",
+- "openssl-sys",
+- "pkg-config",
+- "vcpkg",
+-]
+ 
+ [[package]]
+ name = "libz-sys"
+--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig	2026-08-31 17:22:50.666473252 -0500
++++ rustc-beta-src/src/tools/cargo/Cargo.toml	2026-08-31 17:23:14.041192141 -0500
+@@ -51,7 +51,7 @@ filetime = "0.2.27"
+ flate2 = { version = "1.1.9", default-features = false, features = ["zlib-rs"] }
+ futures = { version = "0.3.32", default-features = false, features = ["std", "executor", "async-await"]}
+ futures-timer = "3.0.3"
+-git2 = { version = "0.21.0", features = ["https", "ssh"] }
++git2 = { version = "0.21.0", features = ["https"] }
+ git2-curl = "0.22.0"
+ # When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
+ gix = { version = "0.85.0", default-features = false, features = ["sha1", "progress-tree", "parallel", "dirwalk", "status"] }

diff --git a/rustc-1.99.0-rust-gdb-substitute-path.patch b/rustc-1.99.0-rust-gdb-substitute-path.patch
new file mode 100644
index 0000000..c423232
--- /dev/null
+++ b/rustc-1.99.0-rust-gdb-substitute-path.patch
@@ -0,0 +1,20 @@
+--- rustc-beta-src/src/etc/rust-gdb.orig	2026-08-31 15:14:48.053176599 -0500
++++ rustc-beta-src/src/etc/rust-gdb	2026-08-31 15:16:20.210905378 -0500
+@@ -13,8 +13,6 @@ fi
+ # Find out where the pretty printer Python module is
+ RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
+ GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
+-# Get the commit hash for path remapping
+-RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \([a-zA-Z0-9_]*\)/\1/p')"
+ 
+ # Set the environment variable `RUST_GDB` to overwrite the call to a
+ # different/specific command (defaults to `gdb`).
+@@ -25,7 +23,7 @@ RUST_GDB="${RUST_GDB:-gdb}"
+ set -- \
+   --directory="$GDB_PYTHON_MODULE_DIRECTORY" \
+   -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
+-  -iex "set substitute-path /rustc/$RUSTC_COMMIT_HASH $RUSTC_SYSROOT/lib/rustlib/src/rust" \
++  -iex "set substitute-path @BUILDDIR@ $RUSTC_SYSROOT/lib/rustlib/src/rust" \
+   "$@"
+ 
+ # Unstable (nightly-only) trim-paths feature, activated only if

diff --git a/rustc-1.99.0-unbundle-sqlite.patch b/rustc-1.99.0-unbundle-sqlite.patch
new file mode 100644
index 0000000..98117fa
--- /dev/null
+++ b/rustc-1.99.0-unbundle-sqlite.patch
@@ -0,0 +1,23 @@
+diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
+--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig	2026-08-28 17:05:00.000000000 -0700
++++ rustc-beta-src/src/tools/cargo/Cargo.lock	2026-08-31 16:00:00.000000000 -0700
+@@ -3048,7 +3048,6 @@ version = "0.38.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "f6c19a05435c21ac299d71b6a9c13db3e3f47c520517d58990a462a1397a61db"
+ dependencies = [
+- "cc",
+  "pkg-config",
+  "vcpkg",
+ ]
+diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
+--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig	2026-08-28 17:05:00.000000000 -0700
++++ rustc-beta-src/src/tools/cargo/Cargo.toml	2026-08-31 16:00:00.000000000 -0700
+@@ -88,7 +88,7 @@ proptest = "1.11.0"
+ pulldown-cmark = { version = "0.13.3", default-features = false, features = ["html"] }
+ rand = "0.10.1"
+ regex = "1.12.3"
+-rusqlite = { version = "0.40.0", features = ["bundled"] }
++rusqlite = { version = "0.40.0", features = [] }
+ rustc-hash = "2.1.2"
+ rustc-stable-hash = "0.1.2"
+ rustfix = { version = "0.9.8", path = "crates/rustfix" }

diff --git a/sources b/sources
index 3053b2c..716f416 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (rustc-1.98.1-src.tar.xz) = 58941e5606651d5a254f36d9771bf6524347068a69ad6fcfb72d0f02b066b16fb415e5d54c8e1266fef777a64ede69c47042f13525a29e39be3e9da84dbccdf4
-SHA512 (rustc-1.98.1-src.tar.xz.asc) = 2c030148eca74e2d1e5f497b6dc0725a3d3d5dc328ad9f854d46067f24b682f99e7cee9de415b3450e8c315015dd73c1945dd2785163d12dfd0119d089b78276
-SHA512 (wasi-libc-wasi-sdk-33.tar.gz) = 7b07509db0ce6817a9616988b8b4ea9c7a87a2318e68ed350a2d0a8f7e839bb97e1cb766a568b008654149835b430a5a090f767ed9db0ca30503c4efe864a49c
+SHA512 (rustc-1.99.0-src.tar.xz) = 64f84f9d2c9531c85bc7d4a775abfddf4c09d852e17993d8c2ad3cf94d0a62ac72228bb452e3f3964a18bb49fa47e9a97ee7ed16ed61533717ba68164abd1fbd
+SHA512 (rustc-1.99.0-src.tar.xz.asc) = 2a8aef98d2cf907b8f1eb8e8113a283caba2037f32f17614cedb15e32990a4a852ff65c97c243c6b17256b39226a789e6597025bfbcdeec221db06af23435b37
+SHA512 (wasi-libc-wasi-sdk-34.tar.gz) = effe714d3ac75f22780ebe21b5cb7c4240fab72a5b0f1f75ce4cb842d1c60d9a5180ef50ce079d483391360819209e4ecfc22def0fec381d570dd2bdec1011ed

                 reply	other threads:[~2026-10-05 19:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179122902656.1.9101485927764737596.rpms-rust-8b7522feb42d@fedoraproject.org \
    --to=murp@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox