-
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
[RFC-3086] Restrict the parsing of count
#111908
Conversation
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
This change seems to be inconsistent with other comma separated lists in the language, which permit trailing commas. I believe |
r? compiler |
Yeah, I agree with @PatchMixolydic here. Why is |
AFAICT, There isn't a personal preference so, if desired, feel free to close this PR and #111904 to stick with the current behavior :) |
I may be misremembering, but I think petrochenkov reviewed previous RFC3086 work? Maybe you have more opinions about how to handle this and whether to error here. r? petrochenkov |
At which points something becomes a list though? Neither (But we could accept all the commas here too, just need to do it consistently.) |
@c410-f3r any updates on this? |
Sorry, life happened. I will return to this PR tomorrow. |
A little late but here it is |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b9177c0): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 634.503s -> 633.83s (-0.11%) |
Fix #111904
The original RFC didn't mention the possibility of using
${count(t,)}
and such thing isn't very semantically accurate which can lead to confusion.