diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 12:46:13 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-05-09 11:30:48 +0100 |
commit | 55346cc59b766266202a0ba2114275eb2fc53dda (patch) | |
tree | 652828c92c611dee3a451ee3ffd48ba2ac778800 /gcc/rust/backend/rust-compile-base.h | |
parent | 74e836599ce80a11b1fe28065ed7aae6ffa3b7e2 (diff) | |
download | gcc-55346cc59b766266202a0ba2114275eb2fc53dda.zip gcc-55346cc59b766266202a0ba2114275eb2fc53dda.tar.gz gcc-55346cc59b766266202a0ba2114275eb2fc53dda.tar.bz2 |
Destructure our generics, placeholers or projections during coercion
When we coerce types we need to destructure from the generics in order to
apply these coercion rules correctly or we end up returning a bad
error_mark_node.
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h index 77e6cc3..52e0568 100644 --- a/gcc/rust/backend/rust-compile-base.h +++ b/gcc/rust/backend/rust-compile-base.h @@ -40,8 +40,8 @@ protected: protected: Context *get_context () { return ctx; } - tree coercion_site (tree rvalue, TyTy::BaseType *actual, - TyTy::BaseType *expected, Location lvalue_locus, + tree coercion_site (tree rvalue, const TyTy::BaseType *actual, + const TyTy::BaseType *expected, Location lvalue_locus, Location rvalue_locus); tree coerce_to_dyn_object (tree compiled_ref, const TyTy::BaseType *actual, |