Skip to content

need inclusive range method #6242

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
metajack opened this issue May 5, 2013 · 1 comment
Closed

need inclusive range method #6242

metajack opened this issue May 5, 2013 · 1 comment

Comments

@metajack
Copy link
Contributor

metajack commented May 5, 2013

Right now there is no way to generate the entire range for any type. For example u8::range(0, 256) is the empty vector since 256 = 0 in u8.

@catamorphism
Copy link
Contributor

Nominating for milestone 2, backwards-compatible.

flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 20, 2020
Fix bad suggestions for `deref_addrof` and `try_err` lints

Fix bad suggestions when in macro expansion for `deref_addrof` and `try_err` lints.

Fixes: rust-lang#6234
Fixes: rust-lang#6242
Fixes: rust-lang#6237

changelog: none

r? `@llogiq`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants