Comprehensively support trailing commas in std/core macros by ExpHP · Pull Request #48056 · rust-lang/rust (original) (raw)

Comprehensively support trailing commas in std/core macros

I carefully organized the changes into four commits:

I can easily scale this back to just the first two commits for now if such is desired.

Breaking (?) changes

Changes which may require concensus

Up until now, it could be argued that some or all the following macros did not conceptually take a comma-separated list, because they only took one argument:

So I think these particular changes may require some sort of consensus. All of the fixes for builtins are included this list, so if we want to defer these decisions to later then I can scale this PR back to just the first two commits.

Other notes/general requests for comment


Fixes #48042 Closes #46241