-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
bootstrap: use internment
instead of hand-rolled interning
#128289
Conversation
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #125443) made this pull request unmergeable. Please resolve the merge conflicts. |
ca64da2
to
3f2af36
Compare
This comment has been minimized.
This comment has been minimized.
3f2af36
to
585ee32
Compare
This PR modifies If appropriate, please update |
Unfortunately, this pulls in hashbrown, so probably not worth it |
☔ The latest upstream changes (presumably #130724) made this pull request unmergeable. Please resolve the merge conflicts. |
585ee32
to
aeb7d64
Compare
☔ The latest upstream changes (presumably #130951) made this pull request unmergeable. Please resolve the merge conflicts. |
@GrigorenkoPV what's the status on this? maybe you can resolve the conflicts and we can push this forward |
aeb7d64
to
6d676d0
Compare
@rustbot ready |
The job Click to see the possible cause of the failure (guessed by this bot)
|
I'll ask T-compiler leads regarding the license, AFAICT |
Well, it comes as a dependency from the hashbrown crate. And no, it does not seem to be dual licensed. Anyways, I'm not sure, what do I have to do now? Since it's S-waiting-on-author |
Sorry, I meant to change to S-waiting-for-compiler-leads (S-blocked) :3 because:
|
While I like the code simplification, as usually, adding a dependency to bootstrap is a very hard sell. This increases the number of dependencies from 86 to 91, for relatively little gain. This code was written in ~2017, and from that time it required only very little maintenance (apart from some Clippy lint fixes and some small refactoring), and it seems to be working just fine. Yes, we found a case of unsoundness in it once, but now that the two unsafe lines of code in it were heavily reviewed, I trust that it should be OK. CC also @onur-ozkan |
For more context on why, bootstrap needs to keep minimal deps as it needs to build fast. |
Completely agree. |
The original issue has mentioned the We should probably make a t-bootstrap decision on what to do about #109859, to avoid sending mixed signals that we want to remove all |
Yeah, I'm guessing we should just close the issue - I also don't think removing (moving!) all unsafe code to dependencies is a particularly worthwhile goal in and of itself. In this particular case as others have said the code works and is pretty cheap to maintain. I don't think a dependency benefits us enough to move to it. |
I also do not think moving |
Part of the #109859.