Skip to content
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

fixes stated grammar for block comments... #5583

Conversation

jbclements
Copy link
Contributor

... by adding Kleene '+' in two places, and changing a "non-slash" into "non_slash_or_star".

Closes #1588

bors added a commit that referenced this pull request Mar 29, 2013
…r, r=jbclements

... by adding Kleene '+' in two places, and changing a "non-slash" into "non_slash_or_star".

Closes #1588
@bors bors closed this Mar 29, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 15, 2020
…flip1995

Reversed empty ranges

This lint checks range expressions with inverted limits which result in empty ranges. This includes also the ranges used to index slices.

The lint reverse_range_loop was covering iteration of reversed ranges in a for loop, which is a subset of what this new lint covers, so it has been removed. I'm not sure if that's the best choice. It would be doable to check in the new lint that we are not in the arguments of a for loop; I went for removing it because the logic was too similar to keep them separated.

changelog: Added reversed_empty_ranges lint that checks for ranges where the limits have been inverted, resulting in empty ranges. Removed reverse_range_loop which was covering a subset of the new lint.

Closes rust-lang#4192
Closes rust-lang#96
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