aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2022-07-01 12:35:27 -0700
committerDavid Faust <david.faust@oracle.com>2022-07-01 12:56:34 -0700
commitfa006a67280039e0d6c6f574896bb8d819b452fe (patch)
tree949b4a682cb8bf80db9076bc92db4d5493d46533 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parent33912c1a08d3892d3c72506aed38771754b9cf54 (diff)
downloadgcc-fa006a67280039e0d6c6f574896bb8d819b452fe.zip
gcc-fa006a67280039e0d6c6f574896bb8d819b452fe.tar.gz
gcc-fa006a67280039e0d6c6f574896bb8d819b452fe.tar.bz2
HIR: fixup MatchArm assignment operator
We overload the assignment operator to clone the vector of patterns for the match arm. However the existing patterns were not cleared before inserting the new ones, so the result was to append the new patterns onto the assignee arm rather than replace them.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions