feat(config): warn user if auto-install is enabled, take 2#4859
Open
rami3l wants to merge 4 commits into
Open
Conversation
…_RECURSION_COUNT` This commit clears the value of `RUSTUP_AUTO_INSTALL` and the `RUST_RECURSION_COUNT` environment variables before running tests, to make sure that every test case relying on their effects is explicitly setting them.
b2e4ba4 to
a9611a3
Compare
djc
approved these changes
May 18, 2026
|
|
||
| /// Represents the result of an operation that may ensure the installation of a certain toolchain. | ||
| #[derive(Clone, Debug)] | ||
| pub(crate) struct Ensured<T> { |
Contributor
There was a problem hiding this comment.
Ensured is a pretty generic name. Something more specific might be nicer?
Member
Author
There was a problem hiding this comment.
@djc When I first wrote this I thought this is meant to be read together with other stuff, e.g. Ensured<FooBarToolchain>.
Do you happen to have any suggestions here? Maybe a longer name will help, but EnsuredToolchain<FooBarToolchain> does not necessary make things clearer... 🙏
Member
Author
There was a problem hiding this comment.
@djc Let's go with EnsureInstalled? I think that's more specific and it would be more obvious that it's the return type of the .ensure_installed() function.
deb8e50 to
a4e063a
Compare
a4e063a to
d7da769
Compare
d7da769 to
7509cc8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alternative design for #4454.
Closes #4445.
Opening a draft early to collect CI errors, please don't review yet 🙏This PR has minimized its dependencies on #4840 so hopefully it'll be easier to backport this to 1.29 as well.
Since #4840 is a breaking change, I'd still like to add some 1.29-exclusive deprecation warnings based on it (part of #4211).