Skip to content

WF of a type variable unconditionally evaluates to Yes #36

Closed
rust-lang/rust
#112965
@aliemjay

Description

@aliemjay
Member

In compute_well_formed_goal, when given a goal WF(?0), it adds the same input goal as a recursive goal, which is then evaluated to Yes because of WF goals being coinductive.

TODO: write a test (it seems hard to exploit).

Activity

added a commit that references this issue on Jun 24, 2023

Rollup merge of rust-lang#112965 - compiler-errors:circular-wf, r=ali…

766db81
aliemjay

aliemjay commented on Jun 24, 2023

@aliemjay
MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @aliemjay

      Issue actions

        WF of a type variable unconditionally evaluates to `Yes` · Issue #36 · rust-lang/trait-system-refactor-initiative