cargo -C dir
does not use the rust-toolchain.toml
file within the given directory.
#11957
Labels
A-rustup
Area: rustup interaction
C-bug
Category: bug
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
Issue #10098 requested the addition of the
-C <DIR>
flag. This flag was added in #10952, which closed #10098. However, using the-C
flag does not use therust-toolchain.toml
file from the given directory.For context, see this note from issue #10098:
Steps
rustup default beta # since `-C` isn't released on stable yet cargo new use-nightly
use-nightly/rust-toolchain.toml
with the following contents:cargo
being used with the-C
option vscd
command and note the difference:use-nightly
directory. With-C
it will fail, but withcd use-nightly && cargo build
it should succeed.Possible Solution(s)
No response
Notes
I'm not sure how practical it is to actually fix this issue, but wanted to call attention to it, especially since fixing this after it reaches the stable channel could break things for anyone who might depend on the current behavior.
If it is practical, and someone could point me toward the relevant code, I would be happy to work on fixing this myself.
Version
The text was updated successfully, but these errors were encountered: