aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-12 16:35:24 +0000
committerGitHub <noreply@github.com>2022-02-12 16:35:24 +0000
commitb71cc52613219f353b054eb5520cd3886f354c10 (patch)
tree59405bd9b3abb50f0db69d80c6c924c0a4ed2c68 /gcc/rust/backend/rust-compile-base.h
parent9023bb8687347559702340c24cd72301f0656a59 (diff)
parentc0e5ca327ba69655de7eae9628b85ad5a615dd77 (diff)
downloadgcc-b71cc52613219f353b054eb5520cd3886f354c10.zip
gcc-b71cc52613219f353b054eb5520cd3886f354c10.tar.gz
gcc-b71cc52613219f353b054eb5520cd3886f354c10.tar.bz2
Merge #920
920: Support deref_mut lang item during method resolution r=philberty a=philberty This adds in the lookups for the DEREF_MUT lang item for operator overloading this needs more testing to ensure the behaviour is correct and is the same as rustc. Fixes #890 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h
index a52886c..54116da 100644
--- a/gcc/rust/backend/rust-compile-base.h
+++ b/gcc/rust/backend/rust-compile-base.h
@@ -67,6 +67,9 @@ protected:
tree resolve_deref_adjustment (Resolver::Adjustment &adjustment,
tree expression, Location locus);
+ tree resolve_indirection_adjustment (Resolver::Adjustment &adjustment,
+ tree expression, Location locus);
+
static void setup_attributes_on_fndecl (
tree fndecl, bool is_main_entry_point, bool has_visibility,
const HIR::FunctionQualifiers &qualifiers, const AST::AttrVec &attrs);