Description
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:
-
assembly
-
trait confirmation
-
project
is_eligible
check
-
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.