aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-path.h
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2024-08-08 07:12:00 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:08 +0100
commite7a76ba9176304fab0924e429ae7ca1fa0ee434e (patch)
treef0c3d8e40401c2e654c940535c1f09a6a43069f5 /gcc/rust/resolve/rust-ast-resolve-path.h
parentf5e05755e91e7b32c79dc8c371557cf0049b4277 (diff)
downloadgcc-e7a76ba9176304fab0924e429ae7ca1fa0ee434e.zip
gcc-e7a76ba9176304fab0924e429ae7ca1fa0ee434e.tar.gz
gcc-e7a76ba9176304fab0924e429ae7ca1fa0ee434e.tar.bz2
gccrs: 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/rust/resolve/rust-ast-resolve-path.h')
0 files changed, 0 insertions, 0 deletions