]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Collect error instance instead of lambda functions
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 30 Aug 2023 15:13:36 +0000 (17:13 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:34 +0000 (19:00 +0100)
commit11963393d073a4e54d2e25fccac2962cb66b2dd3
tree4e67e78c4a579b7bfd707a16b10a2e2f47a283a2
parenta289b3614defa2745842a58df23ca11fff583332
gccrs: Collect error instance instead of lambda functions

Use error object instead of lambda for error collection.

gcc/rust/ChangeLog:

* resolve/rust-early-name-resolver-2.0.cc (Early::visit):
Collect error instead of lambda.
* resolve/rust-early-name-resolver-2.0.h (std::function<void):
Remove type alias.
* rust-diagnostics.h: Change collection type.
* rust-session-manager.cc (Session::expansion): Change
collection container.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/resolve/rust-early-name-resolver-2.0.cc
gcc/rust/resolve/rust-early-name-resolver-2.0.h
gcc/rust/rust-diagnostics.h
gcc/rust/rust-session-manager.cc