]> git.lizzy.rs Git - rust.git/commit
libsyntax/ext: trailing commas in builtin macros
authorMichael Lamparski <diagonaldevice@gmail.com>
Wed, 7 Feb 2018 14:32:26 +0000 (09:32 -0500)
committerMichael Lamparski <diagonaldevice@gmail.com>
Wed, 7 Feb 2018 17:48:21 +0000 (12:48 -0500)
commit1137fb193583971f35e1d4b3cfcb25725948da4f
tree9cdab0fc2cd3facbad058dddd2125e323ba8dff3
parent96eed862a08f0ee1d234f4f83419dd46fe58ccef
libsyntax/ext: trailing commas in builtin macros

Most notably this changes 'syntax::ext::base::get_single_str_from_tts'
to accept a trailing comma, and revises the documentation so that this
aspect is not surprising. I made this change under the understanding
that this crate is private rustc implementation detail (I hope this is
correct!). After reviewing all call sites, I believe the revised
semantics are closer to the intended spirit of the function.
src/libsyntax/ext/base.rs
src/libsyntax_ext/cfg.rs