diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-29 09:55:28 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-07-01 12:42:31 -0400 |
| commit | 1ded7a581589b65be35724ea00bb5cec4e13c673 (patch) | |
| tree | 8038e5240492ac2759a5718b8f6ac2364b83efb5 /src/test/codegen/src-hash-algorithm | |
| parent | c84402872ec9ced6f5ba16b48c4f45fef96ad591 (diff) | |
| download | rust-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
