Update rust toolchain

I can't update rust to 1.80
when using rustup, it reported 1.80 but rustc was still 1.79

what is the output of:

$ rustup default

image

What's the output of (Get-Command rustc).Path?

well, that's strange. do you have other rust compilers installed not using rustup?

what's the output of where.exe rustc?

image

so there's the problem: you have a standalone rust toolchain installed at C:\Program Files\Rust stable MSVC 1.79 which takes precedence over the one installed via rustup.

either uninstall the standalone toolchain, or, if you don't want to uninstall it, edit the PATH environment variable so that C:\Users\tranvlnh\.cargo\bin comes before C:\Program Files\Rust stable MSVC 1.79\bin

1 Like

thank u, i did it

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.