aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPrajwal S N <prajwalnadig21@gmail.com>2024-12-16 13:29:46 +0530
committerCohenArthur <arthur.cohen@embecosm.com>2025-01-06 11:13:30 +0000
commita62630f99093b253bf499d0c2da4765e197a5608 (patch)
treefd9ff86057295b17043ad39c6ff482f696096541 /gcc/rust/backend/rust-compile-expr.h
parent26d3103c2d65741221920a0239d9f02ac5e61e6d (diff)
downloadgcc-a62630f99093b253bf499d0c2da4765e197a5608.zip
gcc-a62630f99093b253bf499d0c2da4765e197a5608.tar.gz
gcc-a62630f99093b253bf499d0c2da4765e197a5608.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/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions