为什么rustup没有像我预期的那样更新rustc?

jhkqcmku  于 2022-11-12  发布在  其他
关注(0)|答案(1)|浏览(555)

看起来它已经更新到1. 64. 0,这是我想要的,但后来当我检查版本时,更新并没有发生。

root@c1:~# rustup update 
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: checking for self-updates

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.64.0 (a55dd71d5 2022-09-19)

info: cleaning up downloads & tmp directories

root@c1:~# rustc --version
rustc 1.58.0-nightly (072799443 2021-11-06)
yb3bgrhw

yb3bgrhw1#

这是因为rustup更新了一个不同的rust安装比一个你检查它的版本用rustc --version.你可以看到rustup已经更新了一个稳定版本的rust而rustc是每晚的,正如这第一条注解说的.运行rustc和rustup显示来定位这两个安装并且然后相应地修正你的路径

相关问题