Skip to content

Split impl at 'for' if a line break is needed #1148

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 8 commits into from
Sep 6, 2016
Merged

Split impl at 'for' if a line break is needed #1148

merged 8 commits into from
Sep 6, 2016

Conversation

fabric-and-ink
Copy link
Contributor

Fix #1037.

@@ -13,20 +13,20 @@ pub impl Foo for Bar {
}

pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z> {
fn foo() { "hi" }
fn foo() { "hi" }
Copy link
Contributor Author

@fabric-and-ink fabric-and-ink Sep 4, 2016

Choose a reason for hiding this comment

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

Oops, my editor removed these trailing white spaces... Have they been there intentionally?

Copy link
Member

Choose a reason for hiding this comment

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

yes


impl<BorrowType, K, V, NodeType, HandleType> PartialEq
for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
}
Copy link
Member

Choose a reason for hiding this comment

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

could you change the source of the test to be incorrectly formatted please

@nrc
Copy link
Member

nrc commented Sep 5, 2016

looks good, just a couple of minor things to fix, thanks!

@fabric-and-ink
Copy link
Contributor Author

fabric-and-ink commented Sep 5, 2016

@nrc done.

@nrc nrc merged commit a5d7073 into rust-lang:master Sep 6, 2016
@nrc
Copy link
Member

nrc commented Sep 6, 2016

Thank you!

@fabric-and-ink
Copy link
Contributor Author

My pleasure.

@fabric-and-ink fabric-and-ink deleted the split_impl_at_for branch September 6, 2016 09:59
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.

2 participants