Skip to content

rustup update should not downgrade toolchains #5003

Description

@neolib

Verification

Problem

rustup up does not validate remote version against local version.

I found out this because the fastest mirror (RUSTUP_DIST_SERVER) was temporarily down and I switched to another one, which unfortunately had an outdated version 1.96.

When I ran rustup up, it unconditionally removed my local version 1.97.1 and installed the old versin 1.96.

Steps

N/A

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.29.0 (28d1352db 2026-03-05)

Installed toolchains

Default host: i686-pc-windows-gnu
rustup home:  C:\Programs\rust\rustup

installed toolchains
--------------------
stable-i686-pc-windows-gnu (active, default)
stable-x86_64-pc-windows-gnu

active toolchain
----------------
name: stable-i686-pc-windows-gnu
active because: it's the default toolchain
installed targets:
  i686-pc-windows-gnu

OS version

Windows 11 25H2 version 10.0.26200.8973

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions