summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-05-18 14:14:20 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2021-06-11 12:04:27 -0400
commitc05bbb72371534ce02f76097280deca6518df69a (patch)
tree20e0d885588d5222c295da80681354fd559ed815 /src/test/ui/thinlto
parent752c939dfee797008da1af044786346adb2d7b4b (diff)
downloadrust-c05bbb72371534ce02f76097280deca6518df69a.tar.gz
rust-c05bbb72371534ce02f76097280deca6518df69a.zip
Fix incorrect gating of nonterminals in key-value attributes
Fixes #85432

When processing a `#[derive]` or `#[cfg_eval]` attribute, we need to
re-parse our attribute target, which requires flattenting all
`Nonterminals`. However, this caused us to incorrectly gate on a
(flattented) nonterminal in a key-value attribute, which is supposed to
be allowed.

Since we already perform this gating during the initial parse, we
suppress it in `capture_cfg` mode.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions