Auto merge of #156297 - ChayimFriedman2:lang-items-traits, r=mejrs

Implement some trait for next solver's lang item enums

rust-analyzer needs that.
This commit is contained in:
bors
2026-05-08 23:44:40 +00:00
+3
View File
@@ -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,