aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-10-06 14:46:17 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:33 +0100
commit13556413e3841460d88c7a63c8a3049399f6b28e (patch)
tree469f314c188b78f915cf1d508dd64ed9632d125c /gcc/rust/resolve/rust-ast-resolve-expr.cc
parent522197469179e786e59202a40f2adf9dd95c8ddd (diff)
downloadgcc-13556413e3841460d88c7a63c8a3049399f6b28e.zip
gcc-13556413e3841460d88c7a63c8a3049399f6b28e.tar.gz
gcc-13556413e3841460d88c7a63c8a3049399f6b28e.tar.bz2
gccrs: 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 gcc/rust/ChangeLog: * backend/rust-compile.cc: Add note about missing support for super traits. * typecheck/rust-tyty.cc (BaseType::satisfies_bound): New function. (BaseType::bounds_compatible): New function. (DynamicObjectType::get_object_items): New function. * typecheck/rust-hir-trait-ref.h: Use new API to perform type resolution on dyn objects.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions