Skip to content

run rustfmt on libcollections module #33966

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

Closed
wants to merge 1 commit into from
Closed

run rustfmt on libcollections module #33966

wants to merge 1 commit into from

Conversation

srinivasreddy
Copy link
Contributor

No description provided.

@rust-highfive
Copy link
Contributor

r? @gankro

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

@srinivasreddy
Copy link
Contributor Author

srinivasreddy commented May 30, 2016

r? @Manishearth cc to @nrc

@rust-highfive rust-highfive assigned Manishearth and unassigned Gankra May 30, 2016
@@ -986,7 +992,7 @@ impl<A> Extend<A> for LinkedList<A> {
}

impl<I: IntoIterator> SpecExtend<I> for LinkedList<I::Item> {
default fn spec_extend(&mut self, iter: I) {
fn spec_extend(&mut self, iter: I) {
Copy link
Contributor

Choose a reason for hiding this comment

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

A default has been stripped 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.

wooo. @nrc

Copy link
Member

Choose a reason for hiding this comment

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

@bors
Copy link
Collaborator

bors commented Jun 2, 2016

☔ The latest upstream changes (presumably #33947) made this pull request unmergeable. Please resolve the merge conflicts.

impl<T> ToOwned for T where T: Clone {
impl<T> ToOwned for T
where T: Clone
{
Copy link
Member

Choose a reason for hiding this comment

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

Why is the parenthesis going back to line? That's quite ugly. :-/

Copy link
Member

Choose a reason for hiding this comment

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

(rustfmt bug again)

I think this is intentional though, since the where clause was indented

Copy link
Member

Choose a reason for hiding this comment

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

It is intentional - we do this by hand with where clauses too

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Jun 2, 2016

As much as I like rustfmt, some changes are very ugly. :-/

@nrc
Copy link
Member

nrc commented Jun 7, 2016

The default thing has been fixed on the rustfmt side (you'll need to rebuild rustfmt from master). With that change, I think this should land.

@Manishearth
Copy link
Member

Needs a rebase and some fixes. Closing for now, feel free to reopen if you finish these. Thanks!

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to resubmit with a rebase!

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.

9 participants