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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/f24240c2b2aad3e28586033e89ff3627162d3aa7
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4418
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 02fbb52a2..2e7eaa81e 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
base-commit: 252649e2acc7b6ac2dc997ed7951f387fb6c5eef
--
2.52.0