From 5a287a33b5b935ebd1c3590f767d21746e196e13 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Tue, 24 Nov 2026 18:21:00 +0100 Subject: [PATCH] docs(user-guide): Clarify that channels are not automatically updated --- doc/user-guide/src/concepts/channels.md | 10 ++++++---- doc/user-guide/src/overrides.md | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/doc/user-guide/src/concepts/channels.md b/doc/user-guide/src/concepts/channels.md index 772349493b..6c5e5480d4 100644 --- a/doc/user-guide/src/concepts/channels.md +++ b/doc/user-guide/src/concepts/channels.md @@ -8,9 +8,11 @@ on Rust's train release model. The release schedule is posted to the [Rust Forge]. `rustup` assists with installing different channels, keeping them up-to-date, and easily switching between them. -After a release channel has been installed, `rustup` can be used to update the -installed version to the latest release on that channel. See the [Keeping rust -up to date] section for more information. +When installing from a channel, `rustup` installs the latest release from that +channel at that point of time. Once installed, `rustup` does not automatically +update the channel when new releases become available. Instead, +`rustup update` can be used to update to the latest release of that channel, +see the [Keeping Rust up to date] section for more information. `rustup` can also install specific versions of Rust, such as `1.45.2` or `nightly-2020-07-27`. See the [Toolchains] chapter for more information on @@ -19,7 +21,7 @@ details on switching between toolchains and pinning your project to a specific toolchain. [channels]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html -[Keeping rust up to date]: ../basics.md#keeping-rust-up-to-date +[Keeping Rust up to date]: ../basics.md#keeping-rust-up-to-date [rust forge]: https://forge.rust-lang.org/ [toolchains]: toolchains.md diff --git a/doc/user-guide/src/overrides.md b/doc/user-guide/src/overrides.md index 5129e751fb..25192442f1 100644 --- a/doc/user-guide/src/overrides.md +++ b/doc/user-guide/src/overrides.md @@ -128,7 +128,24 @@ string in the following form: = YYYY-MM-DD ``` +> [!NOTE] +> When specifying unversioned channels such as `stable` (instead of `1.99.1`) +> or `nightly` (instead of `nightly-2021-01-21`) and that channel is already +> installed locally, `rustup` will use that existing installed release, even +> if a newer release for that channel might be available online. +> +> When collaborating with other people on a project or when running Continuous +> Integration on a separate machine this can lead to different Rust versions +> being used. This is usually not a problem though due to Rust's stability +> guarnatees (and its features such as [Editions] and [Cargo `rust-version`]).\ +> However, there are cases where mismatches between Rust versions can lead to +> unexpected build failures, for example when using nightly features or when +> running Continuous Integration with [`build.warnings = "deny"`]. + [toolchain]: concepts/toolchains.md +[Editions]: https://doc.rust-lang.org/edition-guide/editions/ +[Cargo `rust-version`]: https://doc.rust-lang.org/cargo/reference/rust-version.html +[`build.warnings = "deny"`]: https://doc.rust-lang.org/cargo/reference/config.html#buildwarnings #### path