Skip to content

Commit 4a997ee

Browse files
committed
Auto merge of #156297 - ChayimFriedman2:lang-items-traits, r=mejrs
Implement some trait for next solver's lang item enums rust-analyzer needs that.
2 parents fb0a5a5 + 6b5890b commit 4a997ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

compiler/rustc_type_ir/src/lang_items.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// Lang items used by the new trait solver. This can be mapped to whatever internal
22
/// representation of `LangItem`s used in the underlying compiler implementation.
3+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
34
pub enum SolverProjectionLangItem {
45
// tidy-alphabetical-start
56
AsyncFnKindUpvars,
@@ -15,6 +16,7 @@ pub enum SolverProjectionLangItem {
1516
// tidy-alphabetical-end
1617
}
1718

19+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
1820
pub enum SolverAdtLangItem {
1921
// tidy-alphabetical-start
2022
DynMetadata,
@@ -23,6 +25,7 @@ pub enum SolverAdtLangItem {
2325
// tidy-alphabetical-end
2426
}
2527

28+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2629
pub enum SolverTraitLangItem {
2730
// tidy-alphabetical-start
2831
AsyncFn,

0 commit comments

Comments
 (0)