Rust 切换到 nightly 版本并更新
安装 nightly 版本
如果已经安装可跳过。
rustup install nightly
切换版本
切换到 nightly 版本。stable 版本同理。
C:\Windows\system32>rustup default nightly
info: using existing install for 'nightly-x86_64-pc-windows-msvc'
info: default toolchain set to 'nightly-x86_64-pc-windows-msvc'
nightly-x86_64-pc-windows-msvc unchanged - rustc 1.75.0-nightly (960754090 2023-10-06)
更新
如果是刚安装的则无需更新,之前安装的可以用下面的命令更新。
rustup update nightly