diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-08-19 09:48:49 +0000 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-09-09 08:33:02 +0000 |
commit | 5f42a91bd2b308da2d78912f899dff871598b23e (patch) | |
tree | 30dc24692752c1088070a6109083ca45cd364198 /gcc/rust/resolve | |
parent | a912ffbf32a20fa81120f36ad9042f0dc99872c2 (diff) | |
download | gcc-5f42a91bd2b308da2d78912f899dff871598b23e.zip gcc-5f42a91bd2b308da2d78912f899dff871598b23e.tar.gz gcc-5f42a91bd2b308da2d78912f899dff871598b23e.tar.bz2 |
Used `IndexVec` for Loans
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-place.h: Used `IndexVec` with
ScopeId as index.
* checks/errors/borrowck/rust-borrow-checker-diagnostics.cc
(BorrowCheckerDiagnostics::get_loan): Convert Polonius::Loan to
BIR::Loan, so we can use it as index.
Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions