diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-21 15:39:52 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:52 +0100 |
commit | eb1202224f8e9be687589d66011485b5fc582eb5 (patch) | |
tree | caa94e6d0d46a15845c32a99119b0c8a195fd8e5 /gcc/rust/backend/rust-mangle.h | |
parent | f7c258b291182308538ff18c3ace76b1c11e699a (diff) | |
download | gcc-eb1202224f8e9be687589d66011485b5fc582eb5.zip gcc-eb1202224f8e9be687589d66011485b5fc582eb5.tar.gz gcc-eb1202224f8e9be687589d66011485b5fc582eb5.tar.bz2 |
gccrs: Add capture tracking to the type info for closures
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): Pass captures
properly to `TyTy::ClosureType` constructor.
* typecheck/rust-tyty.cc (ClosureType::as_string): Fix string representation.
(ClosureType::clone): Pass `captures` argument.
* typecheck/rust-tyty.h: Add `captures` field.
Diffstat (limited to 'gcc/rust/backend/rust-mangle.h')
0 files changed, 0 insertions, 0 deletions