diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-05-10 22:37:35 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-05-10 23:31:49 +0100 |
commit | 99d1330b79a6b8457b45bba2a7b9940b1f2e9acd (patch) | |
tree | 43459717de6d35d858dce11932a29700444967d6 /gcc/rust/backend | |
parent | 3ff2b34d5bf7bd4e9bb3cadcb72c1d91c8771f82 (diff) | |
download | gcc-99d1330b79a6b8457b45bba2a7b9940b1f2e9acd.zip gcc-99d1330b79a6b8457b45bba2a7b9940b1f2e9acd.tar.gz gcc-99d1330b79a6b8457b45bba2a7b9940b1f2e9acd.tar.bz2 |
Handle inherited type arguments for methods
MethodCallExpr's support generic arguments so we need to handle adjusting
any inherited type arguments from the receiver and apply them to the func.
This changes the handle_substitutions function for ADT, FnType and Params
to be permissive that we can send single arguments to partially substitute
the type such as the case when we inherit arguments in methods calls. This
is safe because the other interfaces enforce the type checking and number
of arguments etc.
Fixes #423
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions