-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS discrepancy in how RUSTUP_TOOLCHAIN
is set
#3050
Comments
It's possible a bug that it's showing set for any os. That variable is under user control. |
This is unrelated to RUSTUP_TOOLCHAIN. If you run The cause of this is that on Windows rustup puts the toolchain Other platforms aren't affected because the use other env vars to find shared libraries (like LD_LIBRARY_PATH). This used to work, as rustup would keep |
Thank you for the detailed explanations, @ehuss, @ChrisDenton. Closing as evidence suggests this is a duplicate of #3036. |
Problem
There seems to be a discrepancy in how
RUSTUP_TOOLCHAIN
is set on Windows versus Mac and Linux.Steps
env
. Give it the followingmain.rs
:rust-toolchain
:main.rs
:cargo run
the latter. On Linux and Mac, the toolchain is printed as one might expect. But on Windows, one gets:Possible Solution(s)
Sorry, I don't have any.
Notes
I'm not sure if this is related to #3036.
Rustup version
rustup 1.25.1 (bb60b1e89 2022-07-12)
Installed toolchains
The text was updated successfully, but these errors were encountered: