Skip to content

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Aug 24, 2025

Closes #4445.

@@ -53,15 +53,15 @@ pub(crate) struct Toolchain<'a> {
impl<'a> Toolchain<'a> {
pub(crate) async fn from_local(
name: LocalToolchainName,
install_if_missing: bool,
install_if_missing: impl Fn() -> anyhow::Result<bool>,
Copy link
Member Author

@rami3l rami3l Aug 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is made so that the self.should_auto_install() call is postponed to L64, and that the false positive in L60 can be suppressed.

@rami3l rami3l force-pushed the feat/warn-auto-install branch 4 times, most recently from e1dec08 to e504752 Compare August 31, 2025 15:22
@rami3l rami3l force-pushed the feat/warn-auto-install branch 3 times, most recently from b1d9725 to 8d25c01 Compare August 31, 2025 15:34
@rami3l rami3l marked this pull request as ready for review August 31, 2025 15:34
@rami3l rami3l marked this pull request as draft August 31, 2025 15:42
rami3l added 2 commits August 31, 2025 23:47
This also ensures that every test case relying on the `RUSTUP_AUTO_INSTALL`
config option is explicitly setting it.
@rami3l rami3l force-pushed the feat/warn-auto-install branch from 8d25c01 to fedd51c Compare August 31, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show that a toolchain download is due to rust-toolchain.toml
1 participant