diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-02 11:18:51 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-08-06 13:38:34 +0000 |
commit | 6a05b0ada8a6f74310dbdc1b4c587bcfa7fc5a81 (patch) | |
tree | e38882e01ac8ea3df591e94c56740a96ed20ee71 /gcc/rust/util/rust-unicode.h | |
parent | bccb35bca09f92d580b87dbb8ec81e1ed890b10a (diff) | |
download | gcc-6a05b0ada8a6f74310dbdc1b4c587bcfa7fc5a81.zip gcc-6a05b0ada8a6f74310dbdc1b4c587bcfa7fc5a81.tar.gz gcc-6a05b0ada8a6f74310dbdc1b4c587bcfa7fc5a81.tar.bz2 |
borrowck: Avoid overloading issues on 32bit architectures
On architectures where `size_t` is `unsigned int`, such as 32bit x86,
we encounter an issue with `PlaceId` and `FreeRegion` being aliases to
the same types. This poses an issue for overloading functions for these
two types, such as `push_subset` in that case. This commit renames one
of these `push_subset` functions to avoid the issue, but this should be
fixed with a newtype pattern for these two types.
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-fact-collector.h (points): Rename
`push_subset(PlaceId, PlaceId)` to `push_subset_place(PlaceId, PlaceId)`
Diffstat (limited to 'gcc/rust/util/rust-unicode.h')
0 files changed, 0 insertions, 0 deletions