commit | 24b50053bfbdbfec41cd8a87ea3a30b7ce484d64 | [log] [tgz] |
---|---|---|
author | David Koloski <dkoloski@google.com> | Tue Feb 04 22:46:18 2025 -0800 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 04 22:46:18 2025 -0800 |
tree | 6a9dd3ec1f8f4a1f2ec175407ca6d3bbc363b835 | |
parent | 8e19950209808d6892dfc6734b0b7ffe76bcf1e0 [diff] |
[fidl][rust] Eliminate recursive impl bounds Some FIDL types have recursive definitions, where a trait impl applies only if it already applies. For impls with no generics, this isn't an issue since Rust's trait solver automatically applies coinduction to these trait impls. That doesn't apply for trait impls with generics though, so we have to avoid those recursive bounds. During refactoring, a few issues with the trait structure cropped up, so this addresses a few of those as well. Change-Id: Ie759e96b93245a90b91aa6da8c0a62d539b1ae10 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1193895 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: David Koloski <dkoloski@google.com> Reviewed-by: Ian McKellar <ianloic@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.