[src]

Module rustc::middle::kind

Context
check_builtin_bounds
check_cast_for_escaping_regions

This is rather subtle. When we are casting a value to an instantiated trait like a as trait<'r>, regionck already ensures that any references that appear in the type of a are bounded by 'r (ed.: rem FIXME(#5723)). However, it is possible that there are type parameters in the type of a, and those type parameters may have references within them. We have to guarantee that the regions which appear in those type parameters are not obscured.

check_crate
check_expr
check_freevar_bounds
check_send
check_static
check_trait_cast_bounds
check_typaram_bounds