diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-08-08 07:12:00 +0000 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-09-09 08:33:02 +0000 |
commit | 5b8299d7694f0b251dbff422f78f4f706f0dbbe9 (patch) | |
tree | a2afa6c1a65e479e50e08a6ae1f783e61c51aee6 /gcc/tree.h | |
parent | d479eb583efdb83525e2ca2a3f113dfc17fc458f (diff) | |
download | gcc-5b8299d7694f0b251dbff422f78f4f706f0dbbe9.zip gcc-5b8299d7694f0b251dbff422f78f4f706f0dbbe9.tar.gz gcc-5b8299d7694f0b251dbff422f78f4f706f0dbbe9.tar.bz2 |
Use FreeRegions inplace of `std::vector<FreeRegion>`
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-builder-internal.h: Use
FreeRegions instead of making a temporary vector of FreeRegion.
* checks/errors/borrowck/rust-bir-builder.h: Likewise.
* checks/errors/borrowck/rust-bir-fact-collector.h (class FactCollector):
Likewise.
(points): Likewise.
* checks/errors/borrowck/rust-bir-free-region.h: Remove obsolete
set_from() helpers, add push_back().
* checks/errors/borrowck/rust-bir-place.h: Use FreeRegions
instead of making a temporary vector of Origin.
* typecheck/rust-tyty-variance-analysis-private.h: Change type
of `regions`.
* typecheck/rust-tyty-variance-analysis.cc (CrateCtx::query_type_regions):
Use new type.
(GenericTyPerCrateCtx::query_generic_variance): Likewise.
(TyVisitorCtx::add_constraints_from_generic_args): Likewise.
(FieldVisitorCtx::add_constraints_from_region): Likewise.
(FieldVisitorCtx::add_constrints_from_param): Likewise.
* typecheck/rust-tyty-variance-analysis.h: Likewise.
Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions