rust/compiler/rustc_next_trait_solver
Matthias Krüger 02916a3193
Rollup merge of #127145 - compiler-errors:as_lang_item, r=lcnr
Add `as_lang_item` to `LanguageItems`, new trait solver

Add `as_lang_item` which turns `DefId` into a `TraitSolverLangItem` in the new trait solver, so we can turn the large chain of if statements in `assemble_builtin_impl_candidates` into a match instead.

r? lcnr
2024-07-03 17:26:54 +02:00
..
src Rollup merge of #127145 - compiler-errors:as_lang_item, r=lcnr 2024-07-03 17:26:54 +02:00
Cargo.toml Make rustc_next_trait_solver nightly again 2024-06-18 18:52:48 -04:00