-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Doc: explain why Box/Rc/Arc methods do not take self #35418
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
/cc @GuillaumeGomez |
Sorry, not very available this week. |
☔ The latest upstream changes (presumably #35764) made this pull request unmergeable. Please resolve the merge conflicts. |
@@ -71,6 +71,12 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize; | |||
/// does not use atomics, making it both thread-unsafe as well as significantly | |||
/// faster when updating the reference count. | |||
/// | |||
/// Note: as for `Rc<T>`, the inherent methods defined on `Arc<T>` are all |
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.
Can you drop the "as for Rc<T>
" here? I think it's more confusing than it's worth.
r=me modulo small nit! |
This can be confusing for newcomers, especially due to the argument name "this".
done, thanks for review! |
@bors: r=aturon rollup |
📌 Commit a068fc7 has been approved by |
⌛ Testing commit a068fc7 with merge 8746423... |
💔 Test failed - auto-mac-64-opt-rustbuild |
@bors retry |
Doc: explain why Box/Rc/Arc methods do not take self This can be confusing for newcomers, especially due to the argument name `this` that is used for Rc and Arc.
Doc: explain why Box/Rc/Arc methods do not take self This can be confusing for newcomers, especially due to the argument name `this` that is used for Rc and Arc.
Doc: explain why Box/Rc/Arc methods do not take self This can be confusing for newcomers, especially due to the argument name `this` that is used for Rc and Arc.
This can be confusing for newcomers, especially due to the argument name
this
that is used for Rc and Arc.