Skip to content

Conversation

@lukebhan
Copy link
Contributor

@lukebhan lukebhan commented Jun 2, 2020

Sorry, for making a new pull request but there were alot of new changes in the past day or so to the structure and I didn't want to go through merge conflicts. This fixes issue #4065. It also leaves it so that match_trailing_comma will still have a comma if left to true (this was the change requested on the previous pr)

@topecongiro topecongiro merged commit 9549c3b into rust-lang:master Jun 2, 2020
Copy link
Contributor

@topecongiro topecongiro left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the update!

foo()?
}) {
_ => (),
_ => {},
Copy link

Choose a reason for hiding this comment

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

Why does this have the , at the end while the others and others does not?

// the size of a tab.
x()
.y(|| match cond() { true => (), false => () });
.y(|| match cond() { true => {}, false => {}, });
Copy link

Choose a reason for hiding this comment

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

Do we need the extra , at the end?

// the size of a tab.
x()
.y(|| match cond() { true => (), false => () });
.y(|| match cond() { true => {} false => {} });
Copy link

Choose a reason for hiding this comment

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

Oh, I didn't know this is valid. TIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants