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

Fix documentation in cell mod #35895

Merged
merged 1 commit into from
Aug 30, 2016
Merged

Fix documentation in cell mod #35895

merged 1 commit into from
Aug 30, 2016

Conversation

F001
Copy link
Contributor

@F001 F001 commented Aug 22, 2016

The implementation of Rc type in this doc is outdated.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (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.

@@ -121,22 +121,26 @@
//! ```
//! use std::cell::Cell;
//!
//! struct Rc<T> {
//! ptr: *mut RcBox<T>
//! pub struct Rc<T: ?Sized> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why adding pub in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. The pub keyword is removed.

@steveklabnik
Copy link
Member

Seems like the build failure is spurious.

I share @GuillaumeGomez 's question about pub, but otherwise looks good to me

@GuillaumeGomez
Copy link
Member

Travis failed. Run:

make tidy

to see what's wrong.

@steveklabnik
Copy link
Member

Hm, still a strange failure. Let's see how it does on real CI, thanks!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Aug 23, 2016

📌 Commit 424698b has been approved by steveklabnik

//!
//! trait RcBoxPtr<T: ?Sized> {
//! fn inc_strong(&self) {
//! self.inner().strong.set(self.strong().checked_add(1).unwrap_or_else(|| unsafe { abort() }));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still over 100 columns wide, please split into multiple lines.

@eddyb
Copy link
Member

eddyb commented Aug 23, 2016

@bors r-

@GuillaumeGomez
Copy link
Member

And run make tidy.

@GuillaumeGomez
Copy link
Member

And please squash your commits.

@F001
Copy link
Contributor Author

F001 commented Aug 29, 2016

@steveklabnik Just Ping. Could you please help to merge this PR?

@eddyb
Copy link
Member

eddyb commented Aug 29, 2016

@bors r=steveklabnik

@bors
Copy link
Contributor

bors commented Aug 29, 2016

📌 Commit f4c55dd has been approved by steveklabnik

@bors
Copy link
Contributor

bors commented Aug 29, 2016

⌛ Testing commit f4c55dd with merge 404d580...

@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
Fix documentation in cell mod

The implementation of Rc type in this doc is outdated.
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 30, 2016
Fix documentation in cell mod

The implementation of Rc type in this doc is outdated.
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
Fix documentation in cell mod

The implementation of Rc type in this doc is outdated.
bors added a commit that referenced this pull request Aug 30, 2016
@bors bors merged commit f4c55dd into rust-lang:master Aug 30, 2016
@F001 F001 deleted the patch-1 branch August 31, 2016 01:04
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.

8 participants