From 6b5890b3398ddf6cb31a12ff1540df86826cf1f2 Mon Sep 17 00:00:00 2001 From: Chayim Refael Friedman Date: Fri, 8 May 2026 05:43:00 +0300 Subject: [PATCH] Implement some trait for next solver's lang item enums rust-analyzer needs that. --- compiler/rustc_type_ir/src/lang_items.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_type_ir/src/lang_items.rs b/compiler/rustc_type_ir/src/lang_items.rs index 4ed574a55ece..05f9bb382dc3 100644 --- a/compiler/rustc_type_ir/src/lang_items.rs +++ b/compiler/rustc_type_ir/src/lang_items.rs @@ -1,5 +1,6 @@ /// Lang items used by the new trait solver. This can be mapped to whatever internal /// representation of `LangItem`s used in the underlying compiler implementation. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum SolverProjectionLangItem { // tidy-alphabetical-start AsyncFnKindUpvars, @@ -15,6 +16,7 @@ pub enum SolverProjectionLangItem { // tidy-alphabetical-end } +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum SolverAdtLangItem { // tidy-alphabetical-start DynMetadata, @@ -23,6 +25,7 @@ pub enum SolverAdtLangItem { // tidy-alphabetical-end } +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum SolverTraitLangItem { // tidy-alphabetical-start AsyncFn,