Toolchain (Nightly)

Chester Wyke June 29, 2023 Updated: April 15, 2025 #rust

Per command override (shorthand)

Source: https://rust-lang.github.io/rustup/overrides.html#toolchain-override-shorthand

If the first argument to cargo, rustc or other tools in the toolchain begins with +, it will be interpreted as a rustup toolchain name

Example:

rustfmt +nightly src/lib.rs

Override to set nightly for a specific folder

Source: https://rust-lang.github.io/rustup/overrides.html#directory-overrides

Set Nightly

rustup override set nightly

Unset override

rustup override unset

Show version in use

rustup show