You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running rustup component list --toolchain stable panics on the current master branch. I tested this on 94d41c6.
It seems to be a problem with Clap. I don't know enough about clap to tell you why the type checker can't catch this kind of error, but if that's the case maybe this could do with some test coverage?
Changing the line in rustup_mode.rs to PartialToolchainDesc would probably fix the immediate problem. Still not sure if there's a more type-safe way to do the right thing.
Running
rustup component list --toolchain stable
panics on the current master branch. I tested this on 94d41c6.It seems to be a problem with Clap. I don't know enough about clap to tell you why the type checker can't catch this kind of error, but if that's the case maybe this could do with some test coverage?
Here's the problem code:
rustup/src/cli/rustup_mode.rs
Line 1409 in 94d41c6
The Clap docs: https://docs.rs/clap/latest/clap/struct.ArgMatches.html#method.get_one
and a backtrace:
The text was updated successfully, but these errors were encountered: