diff options
author | Mark Wielaard <mark@klomp.org> | 2021-06-27 16:59:57 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-06-27 16:59:57 +0200 |
commit | 69ed5eaef43c2997c584347a438b5db8351666d8 (patch) | |
tree | 89cf03f5129a254c253b3a052e006bf2df9dd990 /gcc/rust/backend | |
parent | 54e0d0171932b7c43e69f685e5fe41d473ddf5bf (diff) | |
download | gcc-69ed5eaef43c2997c584347a438b5db8351666d8.zip gcc-69ed5eaef43c2997c584347a438b5db8351666d8.tar.gz gcc-69ed5eaef43c2997c584347a438b5db8351666d8.tar.bz2 |
Fix inner attribute parsing
parse_inner_attribute tried to skip the right square token twice. This caused odd error
messages in case there were multiple inner attributes. This bug masked another bug in
parse_attr_input where when the (optional) attr input was an assignment to a literal
the parser failed to skip the literal.
The existing top_attr.rs testcase relied on the two bugs cancelling each other out.
Add a new testcase inner_attributes.rs for the first bug.
Resolves: https://github.com/Rust-GCC/gccrs/issues/510
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions