Skip to content
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

Remove unwrap_shared_mutable_state #5176

Closed
wants to merge 2 commits into from

Conversation

brson
Copy link
Contributor

@brson brson commented Feb 28, 2013

r?

This fixes the current random failures on the bots and closes #4436 by removing unwrap_shared_mutable_state and the code that depends on it. The result is that ARC-like things will not be unwrappable. This feature is complex and is not used outside of test cases.

Note that there is not consensus to remove it.

(second commit)

bors added a commit that referenced this pull request Mar 1, 2013
…atsakis

r?

This fixes the current [random failures](http://buildbot.rust-lang.org/builders/auto-linux/builds/291/steps/test/logs/stdio) on the bots and closes #4436 by removing `unwrap_shared_mutable_state` and the code that depends on it. The result is that ARC-like things will not be unwrappable. This feature is complex and is not used outside of test cases.

Note that there is not consensus to remove it.

(second commit)
@bors bors closed this Mar 1, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 22, 2021
Improve `map_entry` suggestion

fixes: rust-lang#5176
fixes: rust-lang#4674
fixes: rust-lang#4664
fixes: rust-lang#1450

Still need to handle the value returned by `insert` correctly.

changelog: Improve `map_entry` suggestion. Will now suggest `or_insert`, `insert_with` or `match _.entry(_)` as appopriate.
changelog: Fix `map_entry` false positives where the entry api can't be used. e.g. when the map is used for multiple things.
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.

4 participants