Fixes adds info message if self-update is disabled
If self-update is disabled via features during build time, then
we should better info message during `update` that the `rustup`
itself is not updated.
@@ -1028,6 +1028,11 @@ fn update(cfg: &mut Cfg, m: &ArgMatches<'_>) -> Result<utils::ExitCode> {
check_rustup_update()?;
}
+ if self_update::NEVER_SELF_UPDATE {
+ info!("self-update is disabled for this build of rustup");
+ info!("any updates to rustup will need to be fetched with your system package manager")
+ }
+
Ok(utils::ExitCode(0))
}
