]> gcc.gnu.org Git - gcc.git/commit
gccrs: Fix assignment operator overloads for AST and HIR patterns
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 27 Feb 2023 16:18:56 +0000 (11:18 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:19:01 +0000 (18:19 +0100)
commit98b83ea8a41763d1a760a79a27132fbc610b93d4
tree4cf86cba70e005ec61ae85e9a9a69387d5efe03b
parent525110ae4951fcc1ca3e858d6afa23823b79b8f0
gccrs: Fix assignment operator overloads for AST and HIR patterns

gcc/rust/ChangeLog:

* ast/rust-pattern.h
(StructPatternElements::operator=): Clear vector before inserting.
(TupleStructItemsNoRange::operator=): Clear vector before inserting.
(TupleStructItemsRange::operator=): Clear vectors before inserting.
(TuplePatternItemsMultiple::operator=): Clear vector before inserting.
(TuplePatternItemsRanged::operator=): Clear vectors before inserting.
(SlicePattern::operator=): Clear vector before inserting.
(AltPattern::operator=): Clear vector before inserting.
* hir/tree/rust-hir-pattern.h
(StructPatternElements::operator=): Clear vector before inserting.
(TupleStructItemsNoRange::operator=): Clear vector before inserting.
(TupleStructItemsRange::operator=): Clear vectors before inserting.
(TuplePatternItemsMultiple::operator=): Clear vector before inserting.
(TuplePatternItemsRanged::operator=): Clear vectors before inserting.
(SlicePattern::operator=): Clear vector before inserting.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-pattern.h
gcc/rust/hir/tree/rust-hir-pattern.h
This page took 0.057327 seconds and 5 git commands to generate.