diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-08-11 19:45:21 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-08-19 14:36:11 +0100 |
commit | 71cf0d44d3fceb235c95d5acaf92b498f8cf923b (patch) | |
tree | 4586cb6d436eeda82408da48709647f9f0cc5eb0 /gcc/rust/backend/rust-compile-tyty.h | |
parent | 3f877a690dccd5faf5b75ad7b75e0bd85f0a5be4 (diff) | |
download | gcc-71cf0d44d3fceb235c95d5acaf92b498f8cf923b.zip gcc-71cf0d44d3fceb235c95d5acaf92b498f8cf923b.tar.gz gcc-71cf0d44d3fceb235c95d5acaf92b498f8cf923b.tar.bz2 |
Add support for optional trait functions in method calls
This adds compilation support for optional trait functions with a function
block. This does not support constants or default types yet.
Trait references must do type resolution of their block, but this is only
performed once a trait is resolved. In order to avoid recursive trait
resolution we use a on_resolved callback to invoke this to occur. The trait
resolver works as a query based system so you have to avoid the case of
recursively resolving the trait untill it is stored in the internal
mappings.
Addresses #542
Diffstat (limited to 'gcc/rust/backend/rust-compile-tyty.h')
0 files changed, 0 insertions, 0 deletions