aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2024-07-09 10:37:27 +0000
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-08-01 10:38:50 +0000
commitbcd860f7f54a241ca8a2ce6fb4d61069fd7139d0 (patch)
tree27a1393e85de41d925deb87848b5cacf60eec0b2 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parentf2c807127b5c88ca0bd4993fe8315d865b8c5ba5 (diff)
downloadgcc-bcd860f7f54a241ca8a2ce6fb4d61069fd7139d0.zip
gcc-bcd860f7f54a241ca8a2ce6fb4d61069fd7139d0.tar.gz
gcc-bcd860f7f54a241ca8a2ce6fb4d61069fd7139d0.tar.bz2
Add location to BIR::Loan
This commit adds location_t to BIR::Loan, this location will point to location is source code where the borrow occured, this information will be useful for reporting borrow-checking errors. gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-builder-internal.h: Fill location for loan. * checks/errors/borrowck/rust-bir-place.h (struct Loan): Add location field. 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