]> git.ipfire.org Git - thirdparty/gcc.git/commit
Parse const with no value expression
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 23 Oct 2023 15:06:43 +0000 (17:06 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 23 Oct 2023 16:35:23 +0000 (16:35 +0000)
commit4f0da0ec6e113402a6063fc0f8cc94b8692b450a
tree17448dc8e1c50f585e8267ede881c52c0d696d29
parentaf3071fc346d0e6cfd7c36a5b203589d5e1b2f85
Parse const with no value expression

Const with no value expression may exist either in trait or in disabled
blocks. This means we should be able to parse those correctly.

gcc/rust/ChangeLog:

* ast/rust-item.h: Add a new constructor for const with no value
expression.
* parse/rust-parse-impl.h (Parser::parse_const_item): Allow const with
no expression value.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-item.h
gcc/rust/parse/rust-parse-impl.h