diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-05-18 14:14:20 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-06-11 12:04:27 -0400 |
| commit | c05bbb72371534ce02f76097280deca6518df69a (patch) | |
| tree | 20e0d885588d5222c295da80681354fd559ed815 /src/test/ui/thinlto | |
| parent | 752c939dfee797008da1af044786346adb2d7b4b (diff) | |
| download | rust-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
