]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Change struct StructPatternElements into class
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 27 Feb 2023 16:02:02 +0000 (11:02 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:19:01 +0000 (18:19 +0100)
gcc/rust/ChangeLog:

* ast/rust-pattern.h
(struct StructPatternElements): Change to class.
(class StructPatternElements): Change from struct.
* hir/tree/rust-hir-pattern.h
(struct StructPatternElements): Change to class.
(class StructPatternElements): Change from struct.

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

index 0f6cf8fc61740bb053891f741f939abd0ed4b8be..fc587abad03dc1959666c30785798cec787c2d84 100644 (file)
@@ -773,9 +773,8 @@ protected:
 };
 
 // Elements of a struct pattern
-struct StructPatternElements
+class StructPatternElements
 {
-private:
   // bool has_struct_pattern_fields;
   std::vector<std::unique_ptr<StructPatternField>> fields;
 
index 0c6cccef7d5080f867860bbd6e2f3d9101c9b0f4..9bc143d56e5a457a9340f99428c66c681d6af54a 100644 (file)
@@ -667,9 +667,8 @@ protected:
 };
 
 // Elements of a struct pattern
-struct StructPatternElements
+class StructPatternElements
 {
-private:
   std::vector<std::unique_ptr<StructPatternField>> fields;
 
 public: