Skip to content

align chalk and rustc dyn representation #30

Open
@nikomatsakis

Description

@nikomatsakis

chalk represents dyn Trait using binders, so that for dyn Debug, you have a predicate like <T> T: Debug (here, the bound variable T represents the self type).

rustc uses ExistentialPredicate.

The chalk way seems superior. Better to not have an extra form of predicate.

The goal would be to refactor rustc to use a binder + predicate.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions