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

Doc: explain why Box/Rc/Arc methods do not take self #35418

Merged
merged 1 commit into from
Aug 30, 2016

Conversation

birkenfeld
Copy link
Contributor

This can be confusing for newcomers, especially due to the argument name this that is used for Rc and Arc.

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@birkenfeld
Copy link
Contributor Author

/cc @GuillaumeGomez

@GuillaumeGomez
Copy link
Member

Sorry, not very available this week.

r? @steveklabnik

@bors
Copy link
Contributor

bors commented Aug 25, 2016

☔ 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
Copy link
Member

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.

@aturon
Copy link
Member

aturon commented Aug 27, 2016

r=me modulo small nit!

This can be confusing for newcomers, especially due to the argument
name "this".
@birkenfeld
Copy link
Contributor Author

done, thanks for review!

@steveklabnik
Copy link
Member

@bors: r=aturon rollup

@bors
Copy link
Contributor

bors commented Aug 28, 2016

📌 Commit a068fc7 has been approved by aturon

@bors
Copy link
Contributor

bors commented Aug 29, 2016

⌛ Testing commit a068fc7 with merge 8746423...

@bors
Copy link
Contributor

bors commented Aug 29, 2016

💔 Test failed - auto-mac-64-opt-rustbuild

@arielb1
Copy link
Contributor

arielb1 commented Aug 29, 2016

@bors retry

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 29, 2016
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.
bors added a commit that referenced this pull request Aug 29, 2016
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 30, 2016
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.
bors added a commit that referenced this pull request Aug 30, 2016
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 30, 2016
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.
bors added a commit that referenced this pull request Aug 30, 2016
@bors bors merged commit a068fc7 into rust-lang:master Aug 30, 2016
@birkenfeld birkenfeld deleted the patch-1 branch September 1, 2016 20:17
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.

7 participants