-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Stabilise entry_insert #90345
Stabilise entry_insert #90345
Conversation
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
@rfcbot merge |
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
@bors r+ |
📌 Commit a2fd84a has been approved by |
💔 Test failed - checks-actions |
@bors retry docker.io 503 |
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot)
|
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#90345 (Stabilise entry_insert) - rust-lang#91412 (Improve suggestions for importing out-of-scope traits reexported as `_`) - rust-lang#91770 (Suggest adding a `#[cfg(test)]` to to a test module) - rust-lang#91823 (Make `PTR::as_ref` and similar methods `const`.) - rust-lang#92127 (Move duplicates removal when generating results instead of when displaying them) - rust-lang#92129 (JoinHandle docs: add missing 'the') - rust-lang#92131 (Sync rustc_codegen_cranelift) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I object, because this locks This way, anything that requires a unified type meaning "mutable entry into the map for a particular key" as opposed to a plain |
Unfortunately I think that it's too late to revert the stabilization at this point: the stable release is coming out next week. |
As it turns out, this panic can only occur with the other unstable feature |
cc @rust-lang/libs-api There seem to be several last-minute objections to stabilizing this feature (which is due to be released in stable next week). Thoughts? |
It's not too late to revert yet, but that decision should be made ASAP. |
Since unlike However, not reverting this now will permanently import this accidental complexity from hashbrown. We will never get rid of The current situation is a consequence of not enough communication between the features, not a fundamental/hard problem. |
These look like valid concerns to me. Reverting stabilization right now is a bit late, but not too late. If possible, I'd prefer delaying/reverting stabilizaiton for now, so we have time to discuss these concerns. |
If we would like to revert stabilization, please file a PR targeting master and beta nominate+accept it; it can get picked up in the last round we typically do. |
Just as a reminder, we'll need to remove it from the release notes and blog post as well. |
Has anyone started working on the revert? |
i'll do it. currently AFK but I can get a PR up in 30ish minutes. that would just be a revert of this PR, plus removing it from any release notes that may be stored in this repo? (not sure where they are). |
…=Mark-Simulacrum Destabilise entry_insert See: rust-lang#90345 I didn't revert the rename that was done in that PR, I left it as `entry_insert`. Additionally, before that PR, `VacantEntry::insert_entry` seemingly had no stability attribute on it? I kept the attribute, just made it an unstable one, same as the one on `Entry`. There didn't seem to be any mention of this in the RELEASES.md, so I don't think there's anything for me to do other than this?
…ark-Simulacrum Destabilise entry_insert See: rust-lang#90345 I didn't revert the rename that was done in that PR, I left it as `entry_insert`. Additionally, before that PR, `VacantEntry::insert_entry` seemingly had no stability attribute on it? I kept the attribute, just made it an unstable one, same as the one on `Entry`. There didn't seem to be any mention of this in the RELEASES.md, so I don't think there's anything for me to do other than this?
This stabilises
HashMap:Entry::insert_entry
etc. Tracking issue #65225. It will need an FCP.This was implemented in #64656 two years ago.
This PR includes the rename and change discussed in #65225 (comment), happy to split if needed.