rustc_type_ir/
lang_items.rs

1/// Lang items used by the new trait solver. This can be mapped to whatever internal
2/// representation of `LangItem`s used in the underlying compiler implementation.
3pub enum SolverLangItem {
4    // tidy-alphabetical-start
5    AsyncFnKindUpvars,
6    AsyncFnOnceOutput,
7    CallOnceFuture,
8    CallRefFuture,
9    CoroutineReturn,
10    CoroutineYield,
11    DynMetadata,
12    FutureOutput,
13    Metadata,
14    Option,
15    Poll,
16    // tidy-alphabetical-end
17}
18
19pub enum SolverTraitLangItem {
20    // tidy-alphabetical-start
21    AsyncFn,
22    AsyncFnKindHelper,
23    AsyncFnMut,
24    AsyncFnOnce,
25    AsyncFnOnceOutput,
26    AsyncIterator,
27    BikeshedGuaranteedNoDrop,
28    Clone,
29    Copy,
30    Coroutine,
31    Destruct,
32    DiscriminantKind,
33    Drop,
34    Fn,
35    FnMut,
36    FnOnce,
37    FnPtrTrait,
38    FusedIterator,
39    Future,
40    Iterator,
41    MetaSized,
42    PointeeSized,
43    PointeeTrait,
44    Sized,
45    TransmuteTrait,
46    Tuple,
47    Unpin,
48    Unsize,
49    // tidy-alphabetical-end
50}