Skip to content

-Ztrait-solver=next: add remaining builtin impl candidates #107379

Closed
@lcnr

Description

@lcnr

see #107374 for which candidates are missing. It should be Destruct and Transmute

How to add a new builtin candidate

see #107282 as a reference.

to figure out how your builtin impl should work, you can take the old impl as a reference.
Using DiscriminantKind as an example the old solver deals with builtin candidates in the following places:

Further help

In case you want to work on this and would like further help or are stuck, feel free to open a thread in https://rust-lang.zulipchat.com/#narrow/stream/364551-t-types.2Ftrait-system-refactor or pm me directly on zulip if that's more comfortable for you.

Metadata

Metadata

Assignees

Labels

E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-typesRelevant to the types team, which will review and decide on the PR/issue.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions