about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-06-29 09:55:28 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-07-01 12:42:31 -0400
commit1ded7a581589b65be35724ea00bb5cec4e13c673 (patch)
tree8038e5240492ac2759a5718b8f6ac2364b83efb5 /src/test/codegen/src-hash-algorithm
parentc84402872ec9ced6f5ba16b48c4f45fef96ad591 (diff)
downloadrust-1ded7a581589b65be35724ea00bb5cec4e13c673.tar.gz
rust-1ded7a581589b65be35724ea00bb5cec4e13c673.zip
Handle `None`-delimited groups when parsing `macro_rules!` macro
When a `macro_rules!` macro expands to another `macro_rules!` macro, we
may see `None`-delimited groups in odd places when another crate
deserializes the 'inner' macro. This commit 'unwraps' an outer
`None`-delimited group to avoid breaking existing code.

See https://github.com/rust-lang/rust/pull/73569#issuecomment-650860457
for more details.

The proper fix is to handle `None`-delimited groups systematically
throughout the parser, but that will require significant work. In the
meantime, this hack lets us fix important hygiene bugs in macros
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions