Skip to content

Commit f24240c

Browse files
powerboat9P-E-P
authored andcommitted
Make AST::Crate final
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>
1 parent 252649e commit f24240c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gcc/rust/ast/rust-ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ class SingleASTNode : public Visitable
20562056
};
20572057

20582058
// A crate AST object - holds all the data for a single compilation unit
2059-
struct Crate : public GlobContainer
2059+
struct Crate final : public GlobContainer
20602060
{
20612061
std::vector<Attribute> inner_attrs;
20622062
// dodgy spacing required here

0 commit comments

Comments
 (0)