<commit_before># Trait solving (new-style)

🚧 This chapter describes "new-style" trait solving. This is still in
the process of being implemented; this chapter serves as a kind of
in-progress design document. If you would prefer to read about how the
current trait solver works, check out
[this other chapter](./trait-resolution.html).🚧

Trait solving is based around a few key ideas:

- [Canonicalization](./traits-canonicalization.html), which allows us to
  extract types that contain inference variables in them from their
  inference context, work with them, and then bring the results back
  into the original context.
- [Lowering to logic](./traits-lowering-to-logic.html), which expresses
  Rust traits in terms of standard logical terms.

*more to come*<commit_msg>link to traits working group tracking issue<commit_after># Trait solving (new-style)

🚧 This chapter describes "new-style" trait solving. This is still in the
[process of being implemented][wg]; this chapter serves as a kind of
in-progress design document. If you would prefer to read about how the
current trait solver works, check out
[this other chapter](./trait-resolution.html). (By the way, if you
would like to help in hacking on the new solver, you will find
instructions for getting involved in the
[Traits Working Group tracking issue][wg].) 🚧

[wg]: https://github.com/rust-lang/rust/issues/48416

Trait solving is based around a few key ideas:

- [Canonicalization](./traits-canonicalization.html), which allows us to
  extract types that contain inference variables in them from their
  inference context, work with them, and then bring the results back
  into the original context.
- [Lowering to logic](./traits-lowering-to-logic.html), which expresses
  Rust traits in terms of standard logical terms.

*more to come*
{'fraction_non_alphanumeric': 0.07470946319867183, 'fraction_numerical': 0.002767017155506364, 'mean_word_length': 4.495440729483283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7078421', 'n_tokens_mistral': 503, 'n_tokens_neox': 473, 'n_words': 243}