]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Explicitly use an empty vector for structural eq
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 5 Aug 2025 08:55:33 +0000 (10:55 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:34 +0000 (20:58 +0100)
commit7eef183ae85eb5bd4756061dbe9ad0a2ecc9dce7
treebddd27fd48cb898ddfb14e6c5c7eef3aef13ad54
parent3073ae7fa70b29a495831359cc31d38ba1541d73
gccrs: Explicitly use an empty vector for structural eq

Previous code was technically valid since the moved from vector was
empty but explicitly setting it empty with it's own name will help.

gcc/rust/ChangeLog:

* expand/rust-derive-eq.cc: Use empty vector explicitly.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/expand/rust-derive-eq.cc