diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-06-27 01:18:54 +0000 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-08-01 10:38:50 +0000 |
commit | f2c807127b5c88ca0bd4993fe8315d865b8c5ba5 (patch) | |
tree | c5fa658c08832e24a4e613d2ddff7e514124c711 /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | e941015a2a7c18ecfdf68ecf60495d65aeea1fe4 (diff) | |
download | gcc-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