]> gcc.gnu.org Git - gcc.git/commit
borrowck: BIR: scope handling
authorJakub Dupak <dev@jakubdupak.com>
Fri, 2 Feb 2024 13:38:59 +0000 (14:38 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Thu, 4 Apr 2024 16:21:10 +0000 (16:21 +0000)
commitde18440f92465be93f0248a7071834baa1ec748d
treeb50b857b34b0cd634dbdb001fc500e91c30609ed
parente023b086720b868f60fb5945c998a58ae6555265
borrowck: BIR: scope handling

gcc/rust/ChangeLog:

* checks/errors/borrowck/rust-bir-builder-expr-stmt.cc (ExprStmtBuilder::setup_loop):
Loop handling.
(ExprStmtBuilder::visit): Handle scopes.
* checks/errors/borrowck/rust-bir-builder-internal.h (struct BuilderContext):
Handle scopes.
* checks/errors/borrowck/rust-bir-dump.cc (Dump::go): Dump scopes.
(Dump::visit): Add scopes dump.
(Dump::indent): Add indentation logic.
(Dump::visit_scope): Dump scope.
* checks/errors/borrowck/rust-bir-dump.h: Dump methods.
* checks/errors/borrowck/rust-bir-place.h (std::numeric_limits::max): Scope constants.
(struct Scope): Scope representation.
(class PlaceDB): Scope tracking.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/checks/errors/borrowck/rust-bir-builder-expr-stmt.cc
gcc/rust/checks/errors/borrowck/rust-bir-builder-internal.h
gcc/rust/checks/errors/borrowck/rust-bir-dump.cc
gcc/rust/checks/errors/borrowck/rust-bir-dump.h
gcc/rust/checks/errors/borrowck/rust-bir-place.h
This page took 0.060073 seconds and 5 git commands to generate.