]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Emit an error on malformed path
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 1 Oct 2025 10:36:45 +0000 (12:36 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 20:30:54 +0000 (21:30 +0100)
commit1e10de3ebf3a6c696283a7fed249277740baf04c
tree8108baa1476c98319cab8878c150e830e116c5f6
parent10c3682a55c61e48be4b30e52f8df9b4242b886e
gccrs: Emit an error on malformed path

Path must be made of a single literal item, otherwise an error should be
thrown.

gcc/rust/ChangeLog:

* util/rust-attributes.cc (AttributeChecker::check_attribute): Recurse
within attr input for additional attribute checking.
(AttributeChecker::visit): Remove empty definition in favor of default
ast visitor definition.
* util/rust-attributes.h: Remove now unused prototypes.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-attributes.cc
gcc/rust/util/rust-attributes.h