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

Do not suggest to use the closed interval syntax #2217

Closed
leonardo-m opened this issue Nov 8, 2017 · 3 comments · Fixed by #5057
Closed

Do not suggest to use the closed interval syntax #2217

leonardo-m opened this issue Nov 8, 2017 · 3 comments · Fixed by #5057
Labels
S-needs-discussion Status: Needs further discussion before merging or work can be started

Comments

@leonardo-m
Copy link

I suggest to remove or disable this:
https://rust-lang-nursery.github.io/rust-clippy/master/index.html#range_plus_one

Because in some cases the ..= closed intervals are slower (less efficient) than regular intervals.

@oli-obk oli-obk added the S-needs-discussion Status: Needs further discussion before merging or work can be started label Nov 8, 2017
@oli-obk
Copy link
Contributor

oli-obk commented Nov 8, 2017

Do you have any sources about the slowdown?

@leonardo-m
Copy link
Author

An example here:
rust-lang/rust#45222

@dalcde
Copy link

dalcde commented Jan 17, 2020

This issue still persists. It would be helpful to at least note this in the "Known problems" section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-needs-discussion Status: Needs further discussion before merging or work can be started
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants