Does rustc version reflect the rust installed version?

Hello there, I have been resourching a way for me to detect which version of rust I have installed in my system, the problem is that I want to know the version of the language, not of cargo or rustc.

I notice that:

rustup update                                                   
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'beta-x86_64-unknown-linux-gnu'
info: checking for self-updates

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.56.1 (59eed8a2a 2021-11-01)
    beta-x86_64-unknown-linux-gnu unchanged - rustc 1.57.0-beta.3 (708d57e28 2021-11-01)

which does infact reflect on the actual version of the rust language in the github

Is this information reliable? are there other ways to check the version? if there aren't can I propose this change?

yes, that's the same version. Simplest way to check IMO would be to run rustc -V or maybe rustc +stable -V if you're specifying a non-default toolchain

1 Like

Thank you very much