public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Change struct StructPatternElements into class
@ 2023-03-05 11:40 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-03-05 11:40 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9284e20b6542bad3ac2330b8ac6d41826d6c893b
commit 9284e20b6542bad3ac2330b8ac6d41826d6c893b
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date: Mon Feb 27 11:02:02 2023 -0500
Change struct StructPatternElements into class
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>
Diff:
---
gcc/rust/ast/rust-pattern.h | 3 +--
gcc/rust/hir/tree/rust-hir-pattern.h | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/gcc/rust/ast/rust-pattern.h b/gcc/rust/ast/rust-pattern.h
index ac0bd26f84a..054b308c954 100644
--- a/gcc/rust/ast/rust-pattern.h
+++ b/gcc/rust/ast/rust-pattern.h
@@ -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;
diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h
index ead6cafc903..293616f2a9d 100644
--- a/gcc/rust/hir/tree/rust-hir-pattern.h
+++ b/gcc/rust/hir/tree/rust-hir-pattern.h
@@ -667,9 +667,8 @@ protected:
};
// Elements of a struct pattern
-struct StructPatternElements
+class StructPatternElements
{
-private:
std::vector<std::unique_ptr<StructPatternField>> fields;
public:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-05 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05 11:40 [gcc/devel/rust/master] Change struct StructPatternElements into class Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).