From: Owen Avery <[email protected]>

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 <[email protected]>
---
 gcc/rust/ast/rust-ast.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index 02fbb52a217..2e7eaa81e93 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -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
-- 
2.50.1

Reply via email to