-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Mutex and RwLock arc method #74942
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
Mutex and RwLock arc method #74942
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @joshtriplett (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
fb10527
to
f89a203
Compare
Is the changes in submodule necessary? |
You mean in the test submodule? |
No, I mean library/stdarch and src/tools/cargo |
I'm not sure where these come from, I will remove them, thank you for noticing it |
I am not an official reviewer so take this with a pinch of salt (from one who is also annoyed by the wordiness of the very frequent The way you have it at the moment feels a bit 'inside out'. |
@PhilipDaniels I had the |
☔ The latest upstream changes (presumably #75016) made this pull request unmergeable. Please resolve the merge conflicts. |
eed4ee1
to
a994377
Compare
a994377
to
7ad0406
Compare
☔ The latest upstream changes (presumably #75947) made this pull request unmergeable. Please resolve the merge conflicts. |
9d0868f
to
f86b495
Compare
Cargo.lock
Outdated
@@ -126,9 +126,9 @@ dependencies = [ | |||
|
|||
[[package]] | |||
name = "autocfg" | |||
version = "1.0.0" | |||
version = "1.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you meant to update this file.
library/std/src/lib.rs
Outdated
@@ -215,6 +215,7 @@ | |||
// std is implemented with unstable features, many of which are internal | |||
// compiler details that will never be stable | |||
// NB: the following list is sorted to minimize merge conflicts. | |||
#![cfg_attr(not(bootstrap), feature(doc_spotlight))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unrelated, maybe a rebase conflict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup it is, I was waiting for CI, will fix it as when I get to my computer
☔ The latest upstream changes (presumably #76385) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from triage: |
f86b495
to
e6fb18b
Compare
e6fb18b
to
f578cff
Compare
@MarinPostma unfortunately tests are failing |
Pinging again from triage: |
@MarinPostma thanks for taking the time to contribute. I have to close this due to inactivity. If you wish and you have the time you can open a new PR with these changes and we'll take it from there. Thanks |
This PR adds convenient methods
Mutex::arc
andRwLock::arc
according to #74866Updates all the test to use the new methods instead of the old
Arc::new(..)