-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Transferred from rust-lang/rust#127649.
I expect
rustc --versionto just output version information, like how--versionwould behave in any other application.In my humble opinion,
rustc --versionshould not be responsible for upgrading toolchains. The user should do that either explicitly or maybe when runningrustcwith any other flags for which it makes more sense for silent updates to be performed.The
--versionargument should really just be a 'request' for version information and not trigger any other actions.To be clear... I think it's ok to trigger silent updates for different calls to
rustcwith different arguments, but I believe--versionshould really only output the version (and maybe a hint that the current version is a mismatch by what is specified inrust-toolchain.toml).Performing silent updates, and maybe even more actions, may even pose security risks to users that do not expect these actions to happen silently when running a command like
rustc --version.
Originally posted by @Doineann in #3635 (comment)