Skip to content

Commit 184a899

Browse files
authored
Merge pull request #2845 from kushaldas/fix_2807
Fixes #2807 adds info message if self-update is disabled
2 parents 6c33197 + 1c7e1b7 commit 184a899

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli/rustup_mode.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,11 @@ fn update(cfg: &mut Cfg, m: &ArgMatches<'_>) -> Result<utils::ExitCode> {
10261026
check_rustup_update()?;
10271027
}
10281028

1029+
if self_update::NEVER_SELF_UPDATE {
1030+
info!("self-update is disabled for this build of rustup");
1031+
info!("any updates to rustup will need to be fetched with your system package manager")
1032+
}
1033+
10291034
Ok(utils::ExitCode(0))
10301035
}
10311036

0 commit comments

Comments
 (0)