diff options
author | Prajwal S N <prajwalnadig21@gmail.com> | 2024-12-16 13:29:46 +0530 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-21 12:55:45 +0100 |
commit | 1c13bc20ca23774567e192a47d894cad362086df (patch) | |
tree | 6e66c23926ca918e9c9b1ea7fbf3d50c46d01223 /gcc/rust/hir | |
parent | 9c50565e333621a8f7715db38adda442b1fe8a00 (diff) | |
download | gcc-1c13bc20ca23774567e192a47d894cad362086df.zip gcc-1c13bc20ca23774567e192a47d894cad362086df.tar.gz gcc-1c13bc20ca23774567e192a47d894cad362086df.tar.bz2 |
gccrs: use StackedContexts for block context
Replaces the DIY vector stack with a StackedContexts object for block
scopes in the type checker context.
Fixes #3284.
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check.h (class TypeCheckContext): add
header file and use StackedContexts for blocks
* typecheck/rust-typecheck-context.cc: update methods
* typecheck/rust-hir-trait-resolve.cc: refactor function calls
* typecheck/rust-hir-type-check-implitem.cc: refactor function calls
* typecheck/rust-hir-type-check-type.cc: refactor function calls
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions