diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-06 14:46:17 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-10-12 12:27:45 +0100 |
commit | 32e45c4076c6eed1a632498844c4f1189b4576d1 (patch) | |
tree | 19a1e7416ec7dd9966deb04de518dbddc668ebdd /gcc/rust/backend/rust-compile.cc | |
parent | 3e7320510e7bb774295ecbd8089a9f51d6475959 (diff) | |
download | gcc-32e45c4076c6eed1a632498844c4f1189b4576d1.zip gcc-32e45c4076c6eed1a632498844c4f1189b4576d1.tar.gz gcc-32e45c4076c6eed1a632498844c4f1189b4576d1.tar.bz2 |
Support type resolution on super traits on dyn objects
When checking if specified bounds satisfy other bounds we must lookup the
super traits. To finish the support for super traits we need to redo the
computation of method addresses to support super traits.
Addresses #914
Diffstat (limited to 'gcc/rust/backend/rust-compile.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile.cc b/gcc/rust/backend/rust-compile.cc index 0ccb98d..0c72a16 100644 --- a/gcc/rust/backend/rust-compile.cc +++ b/gcc/rust/backend/rust-compile.cc @@ -247,6 +247,8 @@ HIRCompileBase::compute_address_for_trait_item ( // Algo: // check if there is an impl-item for this trait-item-ref first // else assert that the trait-item-ref has an implementation + // + // FIXME this does not support super traits TyTy::TypeBoundPredicateItem predicate_item = predicate->lookup_associated_item (ref->get_identifier ()); |