- Update rust toolchain to latest stable version:
$ rustup update stable
This updates rustc and cargo to the latest stable release.
- Set the default toolchain as the updated one above:
$ rustup default stable
- Verify if the upgrade was successful:
$ rustc --version