aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2024-06-27 01:18:54 +0000
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-08-01 10:38:50 +0000
commitf2c807127b5c88ca0bd4993fe8315d865b8c5ba5 (patch)
treec5fa658c08832e24a4e613d2ddff7e514124c711 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parente941015a2a7c18ecfdf68ecf60495d65aeea1fe4 (diff)
downloadgcc-f2c807127b5c88ca0bd4993fe8315d865b8c5ba5.zip
gcc-f2c807127b5c88ca0bd4993fe8315d865b8c5ba5.tar.gz
gcc-f2c807127b5c88ca0bd4993fe8315d865b8c5ba5.tar.bz2
Add location support to BIR::Statement
This commit adds location_t to BIR::Statement where type is ASSIGNMENT this information will be later used for reporting borrow-checking errors. gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-builder-expr-stmt.cc (ExprStmtBuilder::visit): Added location parameter. * checks/errors/borrowck/rust-bir-builder-internal.h: Likewise. * checks/errors/borrowck/rust-bir-builder-lazyboolexpr.h: Likewise. * checks/errors/borrowck/rust-bir-builder-pattern.h: Likewise. * checks/errors/borrowck/rust-bir-builder.h: Likewise. * checks/errors/borrowck/rust-bir.h: Likewise. Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions