Skip to content

Conversation

@cachebag
Copy link
Contributor

@cachebag cachebag commented Nov 4, 2025

Closes #4442
Revision of #4585

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I'm not sure yet how/where the ToolchainSection::skip_std field makes it into the DistOptions?

@cachebag cachebag marked this pull request as draft November 4, 2025 16:49
@cachebag
Copy link
Contributor Author

cachebag commented Nov 4, 2025

@djc

So I'm not sure yet how/where the ToolchainSection::skip_std field makes it into the DistOptions?

Yeah, sorry about that. I think it should be fine now, the flag flows through the chain where it should be applied as options.skip_std = skip_std before being used to skip the component in try_update_from_dist_().

@cachebag cachebag requested a review from djc November 4, 2025 18:04
let desc = toolchain.resolve(&cfg.get_default_host_triple()?)?;
let status = cfg
.ensure_installed(&desc, vec![], vec![], None, force_non_host, true)
.ensure_installed(&desc, vec![], vec![], None, force_non_host, true, false)
Copy link
Contributor Author

@cachebag cachebag Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djc I think I might be confused with this one- how do you suggest I handle this? I don't know if it's best here to add an attribute, ignoring it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what you mean. Do you have more context on what the problem is/why you're not sure?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djc I'm sorry, I think I get it..So if I understand correctly, I'm supposed to remove the extra parameter completely from ensure_installed and only set skip_std on DistOptions in the caller before installation?

@cachebag cachebag marked this pull request as ready for review November 4, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustup won't force-skip unavailable rust-std for targets specified through rust-toolchain.toml

2 participants