-Ztrait-solver=next
: add remaining builtin impl candidates
#107379
Labels
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
WG-trait-system-refactor
The Rustc Trait System Refactor Initiative (-Znext-solver)
see #107374 for which candidates are missing. It should be
Destruct
andTransmute
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:assembly
rust/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs
Lines 76 to 78 in 6874f4e
trait confirmation
rust/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
Line 233 in 6874f4e
project
is_eligible
checkrust/compiler/rustc_trait_selection/src/traits/project.rs
Line 1588 in 6874f4e
project confirmation
rust/compiler/rustc_trait_selection/src/traits/project.rs
Lines 1928 to 1933 in 6874f4e
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.
The text was updated successfully, but these errors were encountered: