diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-10-22 09:51:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 09:51:12 +0000 |
commit | 2cd9855d914e760f4c74ac01ad2f7e9378cd80fa (patch) | |
tree | 7f12c08f5759feff35a0bd48cbae6a997c9a4ed5 /gcc/rust/backend/rust-compile-base.h | |
parent | 9edda157230e0272309ca1133145984385f99e64 (diff) | |
parent | a1b0df02414eb323dac53dc07702861a9d4b63b6 (diff) | |
download | gcc-2cd9855d914e760f4c74ac01ad2f7e9378cd80fa.zip gcc-2cd9855d914e760f4c74ac01ad2f7e9378cd80fa.tar.gz gcc-2cd9855d914e760f4c74ac01ad2f7e9378cd80fa.tar.bz2 |
Merge #756
756: Add const to enforce ownership over pointers r=philberty a=philberty
This consify's a bunch of interfaces in the code base which helps make the ownership
over pointers more clear. These are building blocks from a wider cleanup of the type-checking
code to make it more readable.
- BaseType::get_root
- SubstitutionArgumentMappings::solve_mappings_from_receiver_for_self
- Autoderef adjustments
- GetUsedSubstArgs
- SubstitutionArg field SubstitutionParamMapping
- Backend resolve compile interface
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h index 4a81061..d741598 100644 --- a/gcc/rust/backend/rust-compile-base.h +++ b/gcc/rust/backend/rust-compile-base.h @@ -205,14 +205,14 @@ protected: TyTy::BaseType *expected, Location locus); Bexpression *coerce_to_dyn_object (Bexpression *compiled_ref, - TyTy::BaseType *actual, - TyTy::BaseType *expected, - TyTy::DynamicObjectType *ty, + const TyTy::BaseType *actual, + const TyTy::BaseType *expected, + const TyTy::DynamicObjectType *ty, Location locus); Bexpression * compute_address_for_trait_item (const Resolver::TraitItemReference *ref, - TyTy::BaseType *receiver); + const TyTy::BaseType *receiver); }; } // namespace Compile |