Skip to content

Rustfmt-ing libarena. #29020

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

Merged
merged 3 commits into from
Oct 16, 2015
Merged

Conversation

goyox86
Copy link
Contributor

@goyox86 goyox86 commented Oct 13, 2015

Hi Rustaceans!

This is the result of running latest rustfmt on libarena!

//cc @nrc

@rust-highfive
Copy link
Contributor

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. 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.

}

trait AllTypes { fn dummy(&self) { } }
trait AllTypes { fn dummy(&self) {
} }
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not an improvement. I'd report a bug against rustfmt

Copy link
Member

Choose a reason for hiding this comment

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

yeah, yuck

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@goyox86
Copy link
Contributor Author

goyox86 commented Oct 14, 2015

@nrc Manual fixups done as well as reported rustfmt issues.

@@ -105,7 +105,7 @@ pub struct Arena<'longer_than_self> {
head: RefCell<Chunk>,
copy_head: RefCell<Chunk>,
chunks: RefCell<Vec<Chunk>>,
_marker: marker::PhantomData<*mut &'longer_than_self()>,
_marker: marker::PhantomData<*mut &'longer_than_self ()>,
Copy link
Member

Choose a reason for hiding this comment

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

hmm, this seems to be erroneous too on second glance

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Oh actually, it's not sorry, that's a lifetime

@goyox86
Copy link
Contributor Author

goyox86 commented Oct 15, 2015

@nrc Comment fixed

@nrc
Copy link
Member

nrc commented Oct 15, 2015

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 15, 2015

📌 Commit e7be2c3 has been approved by nrc

Manishearth added a commit to Manishearth/rust that referenced this pull request Oct 16, 2015
…, r=nrc

Hi Rustaceans!

This is the result of running latest rustfmt on libarena!

//cc @nrc
bors added a commit that referenced this pull request Oct 16, 2015
Hi Rustaceans!

This is the result of running latest rustfmt on libarena!

//cc @nrc
@bors
Copy link
Collaborator

bors commented Oct 16, 2015

⌛ Testing commit e7be2c3 with merge 24228fe...

@bors bors merged commit e7be2c3 into rust-lang:master Oct 16, 2015
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