Module rustc_middle::ty::sty
source · Expand description
This module contains TyKind and its major components.
Modules§
Structs§
- A closure can be modeled as a struct that looks like:
- Struct returned by
split(). - Similar to
ClosureArgs; see the above documentation for more. - See docs for explanation of how each argument is used.
- Unlike
has_escaping_bound_varsoroutermost_exclusive_binder, this will detect only regions bound at the debruijn index. - An inline const is modeled like
- Struct returned by
split().
Enums§
- Extra information about why we ended up with a particular variance. This is only used to add more information to error messages, and has no effect on soundness. While choosing the ‘wrong’
VarianceDiagInfomay lead to confusing notes in error messages, it will never cause a miscompilation or unsoundness.