Recommended update for rust, rust1.89

Announcement ID: SUSE-RU-2025:03047-1
Release Date: 2025-09-02T13:50:53Z
Rating: moderate
References:
Affected Products:
  • Development Tools Module 15-SP6
  • Development Tools Module 15-SP7
  • openSUSE Leap 15.3
  • openSUSE Leap 15.4
  • openSUSE Leap 15.5
  • openSUSE Leap 15.6
  • SUSE Enterprise Storage 7.1
  • SUSE Linux Enterprise Desktop 15 SP6
  • SUSE Linux Enterprise Desktop 15 SP7
  • SUSE Linux Enterprise High Performance Computing 15 SP3
  • SUSE Linux Enterprise High Performance Computing 15 SP4
  • SUSE Linux Enterprise High Performance Computing 15 SP5
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP5
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP3
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP4
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP5
  • SUSE Linux Enterprise Real Time 15 SP6
  • SUSE Linux Enterprise Real Time 15 SP7
  • SUSE Linux Enterprise Server 15 SP3
  • SUSE Linux Enterprise Server 15 SP3 LTSS
  • SUSE Linux Enterprise Server 15 SP4
  • SUSE Linux Enterprise Server 15 SP4 LTSS
  • SUSE Linux Enterprise Server 15 SP5
  • SUSE Linux Enterprise Server 15 SP5 LTSS
  • SUSE Linux Enterprise Server 15 SP6
  • SUSE Linux Enterprise Server 15 SP7
  • SUSE Linux Enterprise Server for SAP Applications 15 SP3
  • SUSE Linux Enterprise Server for SAP Applications 15 SP4
  • SUSE Linux Enterprise Server for SAP Applications 15 SP5
  • SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • SUSE Linux Enterprise Server for SAP Applications 15 SP7

An update that can now be installed.

Description:

This update for rust, rust1.89 fixes the following issues:

This update ships rust1.89:

Version 1.89.0 (2025-08-07)

Language

  • Stabilize explicitly inferred const arguments (feature(generic_arg_infer))
  • Add a warn-by-default mismatched_lifetime_syntaxes lint. This lint detects when the same lifetime is referred to by different syntax categories between function arguments and return values, which can be confusing to read, especially in unsafe code. This lint supersedes the warn-by-default elided_named_lifetimes lint.
  • Expand unpredictable_function_pointer_comparisons to also lint on function pointer comparisons in external macros
  • Make the dangerous_implicit_autorefs lint deny-by-default
  • Stabilize the avx512 target features
  • Stabilize kl and widekl target features for x86
  • Stabilize sha512, sm3 and sm4 target features for x86
  • Stabilize LoongArch target features f, d, frecipe, lasx, lbt, lsx, and lvz
  • Remove i128 and u128 from improper_ctypes_definitions
  • Stabilize repr128 (#[repr(u128)], #[repr(i128)])
  • Allow #![doc(test(attr(..)))] everywhere
  • Extend temporary lifetime extension to also go through tuple struct and tuple variant constructors
  • extern "C" functions on the wasm32-unknown-unknown target now have a standards compliant ABI https://blog.rust-lang.org/2025/04/04/c-abi-changes-for-wasm32-unknown-unknown/

Compiler

  • Default to non-leaf frame pointers on aarch64-linux
  • Enable non-leaf frame pointers for Arm64EC Windows
  • Set Apple frame pointers by architecture

Platform Support

  • Add new Tier-3 targets loongarch32-unknown-none and loongarch32-unknown-none-softfloat
  • x86_64-apple-darwin is in the process of being demoted to Tier 2 with host tools Refer to Rust's platform support page for more information on Rust's tiered platform support.

Libraries

  • Specify the base path for file!
  • Allow storing format_args!() in a variable
  • Add #[must_use] to [T; N]::map
  • Implement DerefMut for Lazy{Cell,Lock}
  • Implement Default for array::IntoIter
  • Implement Clone for slice::ChunkBy
  • Implement io::Seek for io::Take

Stabilized APIs

  • NonZero<char> https://doc.rust-lang.org/stable/std/num/struct.NonZero.html
  • Many intrinsics for x86, not enumerated here
  • [AVX512 intrinsics
  • [SHA512, SM3 and SM4 intrinsics
  • File::lock https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.lock
  • File::lock_shared https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.lock_shared
  • File::try_lock https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.try_lock
  • File::try_lock_shared https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.try_lock_shared
  • File::unlock https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.unlock
  • NonNull::from_ref https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.from_ref
  • NonNull::from_mut https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.from_mut
  • NonNull::without_provenance https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.without_provenance
  • NonNull::with_exposed_provenance https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.with_exposed_provenance
  • NonNull::expose_provenance https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.expose_provenance
  • OsString::leak https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.leak
  • PathBuf::leak https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.leak
  • Result::flatten https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.flatten
  • std::os::linux::net::TcpStreamExt::quickack https://doc.rust-lang.org/stable/std/os/linux/net/trait.TcpStreamExt.html#tymethod.quickack
  • std::os::linux::net::TcpStreamExt::set_quickack https://doc.rust-lang.org/stable/std/os/linux/net/trait.TcpStreamExt.html#tymethod.set_quickack

These previously stable APIs are now stable in const contexts:

  • <[T; N]>::as_mut_slice https://doc.rust-lang.org/stable/std/primitive.array.html#method.as_mut_slice
  • <[u8]>::eq_ignore_ascii_case https://doc.rust-lang.org/stable/std/primitive.slice.html#impl-%5Bu8%5D/method.eq_ignore_ascii_case
  • str::eq_ignore_ascii_case https://doc.rust-lang.org/stable/std/primitive.str.html#impl-str/method.eq_ignore_ascii_case

Cargo

  • cargo fix and cargo clippy --fix now default to the same Cargo target selection as other build commands. Previously it would apply to all targets (like binaries, examples, tests, etc.). The --edition flag still applies to all targets.
  • Stabilize doctest-xcompile. Doctests are now tested when cross-compiling. Just like other tests, it will use the [runner setting https://doc.rust-lang.org/cargo/reference/config.html#targettriplerunner to run the tests. If you need to disable tests for a target, you can use the ignore doctest attribute https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#ignoring-targets to specify the targets to ignore.

Rustdoc

  • On mobile, make the sidebar full width and linewrap. This makes long section and item names much easier to deal with on mobile.

Compatibility Notes

  • Make missing_fragment_specifier an unconditional error
  • Enabling the neon target feature on aarch64-unknown-none-softfloat causes a warning because mixing code with and without that target feature is not properly supported by LLVM
  • Sized Hierarchy: Part I

  • Introduces a small breaking change affecting ?Sized bounds on impls on recursive types which contain associated type projections. It is not expected to affect any existing published crates. Can be fixed by refactoring the involved types or opting into the sized_hierarchy unstable feature. See the FCP report for a code example.

  • The warn-by-default elided_named_lifetimes lint is [superseded by the warn-by-default mismatched_lifetime_syntaxes lint.

  • Error on recursive opaque types earlier in the type checker
  • Type inference side effects from requiring element types of array repeat expressions are Copy are now only available at the end of type checking
  • The deprecated accidentally-stable std::intrinsics::{copy,copy_nonoverlapping,write_bytes} are now proper intrinsics. There are no debug assertions guarding against UB, and they cannot be coerced to function pointers.
  • Remove long-deprecated std::intrinsics::drop_in_place
  • Make well-formedness predicates no longer coinductive
  • Remove hack when checking impl method compatibility
  • Remove unnecessary type inference due to built-in trait object impls
  • Lint against "stdcall", "fastcall", and "cdecl" on non-x86-32 targets
  • Future incompatibility warnings relating to the never type (!) are now reported in dependencies
  • Ensure std::ptr::copy_* intrinsics also perform the static self-init checks
  • extern "C" functions on the wasm32-unknown-unknown target now have a standards compliant ABI https://blog.rust-lang.org/2025/04/04/c-abi-changes-for-wasm32-unknown-unknown/

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.

  • Correctly un-remap compiler sources paths with the rustc-dev component

Patch Instructions:

To install this SUSE update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:

  • SUSE Linux Enterprise Server for SAP Applications 15 SP4
    zypper in -t patch SUSE-SLE-Product-SLES_SAP-15-SP4-2025-3047=1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP5
    zypper in -t patch SUSE-SLE-Product-SLES_SAP-15-SP5-2025-3047=1
  • SUSE Enterprise Storage 7.1
    zypper in -t patch SUSE-Storage-7.1-2025-3047=1
  • openSUSE Leap 15.3
    zypper in -t patch SUSE-2025-3047=1
  • openSUSE Leap 15.4
    zypper in -t patch SUSE-2025-3047=1
  • openSUSE Leap 15.5
    zypper in -t patch SUSE-2025-3047=1
  • openSUSE Leap 15.6
    zypper in -t patch openSUSE-SLE-15.6-2025-3047=1
  • Development Tools Module 15-SP6
    zypper in -t patch SUSE-SLE-Module-Development-Tools-15-SP6-2025-3047=1
  • Development Tools Module 15-SP7
    zypper in -t patch SUSE-SLE-Module-Development-Tools-15-SP7-2025-3047=1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP3
    zypper in -t patch SUSE-SLE-Product-HPC-15-SP3-LTSS-2025-3047=1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4
    zypper in -t patch SUSE-SLE-Product-HPC-15-SP4-ESPOS-2025-3047=1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP4
    zypper in -t patch SUSE-SLE-Product-HPC-15-SP4-LTSS-2025-3047=1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP5
    zypper in -t patch SUSE-SLE-Product-HPC-15-SP5-ESPOS-2025-3047=1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP5
    zypper in -t patch SUSE-SLE-Product-HPC-15-SP5-LTSS-2025-3047=1
  • SUSE Linux Enterprise Server 15 SP3 LTSS
    zypper in -t patch SUSE-SLE-Product-SLES-15-SP3-LTSS-2025-3047=1
  • SUSE Linux Enterprise Server 15 SP4 LTSS
    zypper in -t patch SUSE-SLE-Product-SLES-15-SP4-LTSS-2025-3047=1
  • SUSE Linux Enterprise Server 15 SP5 LTSS
    zypper in -t patch SUSE-SLE-Product-SLES-15-SP5-LTSS-2025-3047=1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP3
    zypper in -t patch SUSE-SLE-Product-SLES_SAP-15-SP3-2025-3047=1

Package List:

  • SUSE Linux Enterprise Server for SAP Applications 15 SP4 (ppc64le x86_64)
    • rust-1.89.0-150400.24.54.1
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-1.89.0-150300.7.3.1
    • cargo-1.89.0-150400.24.54.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP4 (nosrc ppc64le x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP4 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP5 (ppc64le x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP5 (nosrc ppc64le x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP5 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Enterprise Storage 7.1 (aarch64 x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150300.21.65.1
    • rust-1.89.0-150300.21.65.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Enterprise Storage 7.1 (aarch64 nosrc x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Enterprise Storage 7.1 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • openSUSE Leap 15.3 (aarch64 ppc64le s390x x86_64 i586)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150300.21.65.1
    • rust-1.89.0-150300.21.65.1
    • cargo1.89-1.89.0-150300.7.3.1
  • openSUSE Leap 15.3 (aarch64 ppc64le s390x x86_64 i586 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • openSUSE Leap 15.3 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • openSUSE Leap 15.3 (nosrc)
    • rust1.89-test-1.89.0-150300.7.3.1
  • openSUSE Leap 15.4 (aarch64 ppc64le s390x x86_64 i586)
    • cargo-1.89.0-150400.24.54.1
    • rust-1.89.0-150400.24.54.1
  • openSUSE Leap 15.5 (aarch64 ppc64le s390x x86_64 i586)
    • cargo-1.89.0-150500.27.48.1
    • rust-1.89.0-150500.27.48.1
  • openSUSE Leap 15.6 (aarch64 ppc64le s390x x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • openSUSE Leap 15.6 (aarch64 ppc64le s390x x86_64 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • openSUSE Leap 15.6 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • Development Tools Module 15-SP6 (aarch64 ppc64le s390x x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • Development Tools Module 15-SP6 (aarch64 ppc64le s390x x86_64 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • Development Tools Module 15-SP6 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • Development Tools Module 15-SP7 (aarch64 ppc64le s390x x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • Development Tools Module 15-SP7 (aarch64 ppc64le s390x x86_64 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • Development Tools Module 15-SP7 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (aarch64 x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150300.21.65.1
    • rust-1.89.0-150300.21.65.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (aarch64 nosrc x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (aarch64 x86_64)
    • rust-1.89.0-150400.24.54.1
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-1.89.0-150300.7.3.1
    • cargo-1.89.0-150400.24.54.1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (aarch64 nosrc x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (aarch64 x86_64)
    • rust-1.89.0-150400.24.54.1
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-1.89.0-150300.7.3.1
    • cargo-1.89.0-150400.24.54.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (aarch64 nosrc x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP5 (aarch64 x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP5 (aarch64 nosrc x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing ESPOS 15 SP5 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP5 (aarch64 x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP5 (aarch64 nosrc x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise High Performance Computing LTSS 15 SP5 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP3 LTSS (aarch64 ppc64le s390x x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150300.21.65.1
    • rust-1.89.0-150300.21.65.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP3 LTSS (aarch64 ppc64le s390x x86_64 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP3 LTSS (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP4 LTSS (aarch64 ppc64le s390x x86_64)
    • rust-1.89.0-150400.24.54.1
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-1.89.0-150300.7.3.1
    • cargo-1.89.0-150400.24.54.1
  • SUSE Linux Enterprise Server 15 SP4 LTSS (aarch64 ppc64le s390x x86_64 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP4 LTSS (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP5 LTSS (aarch64 ppc64le s390x x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • rust-1.89.0-150500.27.48.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150500.27.48.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP5 LTSS (aarch64 ppc64le s390x x86_64 nosrc)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server 15 SP5 LTSS (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP3 (ppc64le x86_64)
    • rust1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo1.89-debuginfo-1.89.0-150300.7.3.1
    • cargo-1.89.0-150300.21.65.1
    • rust-1.89.0-150300.21.65.1
    • cargo1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP3 (nosrc ppc64le x86_64)
    • rust1.89-1.89.0-150300.7.3.1
  • SUSE Linux Enterprise Server for SAP Applications 15 SP3 (noarch)
    • rust1.89-src-1.89.0-150300.7.3.1