]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add doc attribute checking on traits
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 1 Oct 2025 15:56:00 +0000 (17:56 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 20:30:55 +0000 (21:30 +0100)
commita0a19aa3faf9a2f53f014c07cb31c50d725fe2e0
treeb96b9edc591ddab6919fb4e8b49910f03549bcb3
parent1461fa714b54621b6b0c0f9258dd5e15ccf4c5f9
gccrs: Add doc attribute checking on traits

Doc attribute checking was not performed on traits.

gcc/rust/ChangeLog:

* util/rust-attributes.cc (check_doc_attribute): Change message.
(AttributeChecker::visit): Add doc attribute checking on traits.

gcc/testsuite/ChangeLog:

* rust/compile/attr_malformed_doc.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-attributes.cc
gcc/testsuite/rust/compile/attr_malformed_doc.rs [new file with mode: 0644]