gccrs: Add closures to lints and error checking
authorPhilip Herron <philip.herron@embecosm.com>
Wed, 19 Oct 2022 17:30:36 +0000 (18:30 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:39 +0000 (12:36 +0100)
commit898240946ca2e351889015d36a60498e40b4a9fc
tree8fb2a1cddd4f66490bcfa5b6244f4b6f658476f0
parent4d021d9e019dd2a7b5442653a20e126f37fd8f39
gccrs: Add closures to lints and error checking

gcc/rust/ChangeLog:

* checks/errors/rust-const-checker.cc (ConstChecker::visit): Visit closures properly.
* checks/errors/rust-unsafe-checker.cc (UnsafeChecker::visit): Likewise.
* checks/lints/rust-lint-marklive.h: Likewise.
gcc/rust/checks/errors/rust-const-checker.cc
gcc/rust/checks/errors/rust-unsafe-checker.cc
gcc/rust/checks/lints/rust-lint-marklive.h