implement is_coinductive
chalk callback
#55096
Labels
A-trait-system
Area: Trait system
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-traits
Working group: Traits, https://internals.rust-lang.org/t/announcing-traits-working-group/6804
The chalk integrate includes a
is_coinductive
callback that indicates whether a particular goal is co-inductive:rust/src/librustc_traits/chalk_context.rs
Lines 132 to 135 in e1643a8
A co-inductive goal is one of the following (see the corresponding chalk code for a kind of reference):
The existing trait solver doesn't have this notion of "well-formed trait goals" -- but it does have code related to testing about auto-traits that gives a few clues as to how to do the first step.
The text was updated successfully, but these errors were encountered: