Skip to content

Force semicolons after break/continue/return. Remove after blocks. #464

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 1 commit into from
Oct 15, 2015
Merged

Force semicolons after break/continue/return. Remove after blocks. #464

merged 1 commit into from
Oct 15, 2015

Conversation

marcusklaas
Copy link
Contributor

}
}
ast::Stmt_::StmtExpr(ref expr, _) => "",
_ => ";",
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 pull this out into a needs_semi_colon fn?

@nrc
Copy link
Member

nrc commented Oct 14, 2015

Sweet! r+ with the minor refactoring

marcusklaas added a commit that referenced this pull request Oct 15, 2015
Force semicolons after break/continue/return. Remove after blocks.
@marcusklaas marcusklaas merged commit dfa8ae4 into rust-lang:master Oct 15, 2015
@marcusklaas marcusklaas deleted the semicolonz branch October 15, 2015 19:03
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