rustc_hir_analysis::check

Module check

Source

Functions§

allowed_union_or_unsafe_field πŸ”’
best_definition_site_of_opaque πŸ”’
check_abi
check_abi_fn_ptr
check_coroutine_obligations πŸ”’
check_enum πŸ”’
check_impl_items_against_trait πŸ”’
check_item_type πŸ”’
check_on_unimplemented πŸ”’
check_opaque πŸ”’
Checks that an opaque type does not contain cycles and does not use Self or T::Foo projections that would result in β€œinheriting lifetimes”.
check_opaque_for_cycles πŸ”’
Checks that an opaque type does not contain cycles.
check_opaque_meets_bounds πŸ”’
Check that the concrete type behind impl Trait actually implements Trait.
check_opaque_precise_captures πŸ”’
Check that the opaque’s precise captures list is valid (if present). We check this for regular impl Traits and also RPITITs, even though the latter are technically GATs.
check_packed πŸ”’
check_packed_inner πŸ”’
check_simd πŸ”’
check_specialization_validity πŸ”’
check_static_inhabited πŸ”’
Check that a static is inhabited.
check_static_linkage πŸ”’
check_struct πŸ”’
check_transparent πŸ”’
check_type_alias_type_params_are_used πŸ”’
check_union πŸ”’
check_union_fields πŸ”’
Check that the fields of the union do not need dropping.
check_unsafe_fields πŸ”’
Check that the unsafe fields do not need dropping.
detect_discriminant_duplicate πŸ”’
Part of enum check. Given the discriminants of an enum, errors if two or more discriminants are equal
is_enum_of_nonnullable_ptr πŸ”’
opaque_type_cycle_error πŸ”’
Emit an error for recursive opaque types.
sanity_check_found_hidden_type πŸ”’