diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-08-05 10:50:55 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:08 +0100 |
commit | b168b618165977d4041aa553813462622bcd781f (patch) | |
tree | c43bbf166398bef8408efc038288cefb7793d28c /gcc/rust/resolve/rust-ast-resolve-path.h | |
parent | 2438584da1f8bbdfdc21b5a2a562472e0c572589 (diff) | |
download | gcc-b168b618165977d4041aa553813462622bcd781f.zip gcc-b168b618165977d4041aa553813462622bcd781f.tar.gz gcc-b168b618165977d4041aa553813462622bcd781f.tar.bz2 |
gccrs: Strong type PlaceId
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-dump.cc (renumber_places):
Use value of PlaceId as index.
(Dump::visit_place): Likewise.
(Dump::visit_scope): Likewise.
(Dump::go): Refill `place_map` with for loop instead of
using std::iota().
* checks/errors/borrowck/rust-bir-fact-collector.h (points): Use
value as index.
* checks/errors/borrowck/rust-bir-place.h (struct PlaceId):
PlaceId is now a class holding a uint32_t value. Overloaded
comparision operators for easier comparision.
Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-path.h')
0 files changed, 0 insertions, 0 deletions