]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Make AST::Crate final
authorOwen Avery <powerboat9.gamer@gmail.com>
Sun, 1 Feb 2026 06:13:24 +0000 (01:13 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 27 Feb 2026 14:57:11 +0000 (15:57 +0100)
This should prevent the warnings which seem to be breaking
bootstrapping.

gcc/rust/ChangeLog:

* ast/rust-ast.h (struct Crate): Make final.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-ast.h

index 02fbb52a2173d243330febb74f7d09729499dd3f..2e7eaa81e93399f907c00a779cd892cb3c15fa43 100644 (file)
@@ -2056,7 +2056,7 @@ public:
 };
 
 // A crate AST object - holds all the data for a single compilation unit
-struct Crate : public GlobContainer
+struct Crate final : public GlobContainer
 {
   std::vector<Attribute> inner_attrs;
   // dodgy spacing required here