Change the global default toolchain.
Section: Toolchains
Set nightly as default
bash
bash
rustup default nightlyExplanation
Applies outside directories that have overrides or rust-toolchain files.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Toolchains
Pin a toolchain in one directory
Create a directory override for the current folder.
Pin toolchain in version-controlled config
Check in a `rust-toolchain.toml` file.