Module rustc_hir_analysis::hir_ty_lowering::generics
source ยท Functionsยง
- Checks that the correct number of generic arguments have been provided. This is used both for datatypes and function calls.
- Checks that the correct number of generic arguments have been provided. Used specifically for function calls.
- Report an error that a generic argument did not match the generic parameter that was expected.
- Lower generic arguments from the HIR to the
rustc_middle::ty
representation. - Prohibits explicit lifetime arguments if late-bound lifetime parameters are present. This is used both for datatypes and function calls.