-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Dogfood half_open_range_patterns
#68859
Conversation
@bors r+ rollup |
📌 Commit b49f4e8 has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Bummer. Looks like rustfmt isn't supporting it yet, so I'll need to use a @bors r- |
I strongly prefer not to do that. |
Works for me; cc @topecongiro. |
To be honest, I find these much harder to read. Maybe I'm just not used to it yet, but it's entirely non obvious to me that we're omitting specifically a zero. It also seems largely useless as I can't really see a case where this is better (i.e. where the zero was in the way before). I'm not sure what to do with this information. This feature was implemented without an RFC, as far as I can tell. I think the fact that these ranges don't have iterator impls is part of it... |
I'll close this for now then and you can consider what to do with the information. Personally, I think the feature adds a degree of consistency to patterns & expressions (and |
cc #67264
r? @oli-obk