Module rustc_typeck::check::wfcheck[][src]

Structs

Helper type of a temporary returned by .for_item(...). This is necessary because we can’t write the following bound:

Constants

Functions

Checks all associated type defaults of trait trait_def_id.

Feature gates RFC 2056 – trivial bounds, checking for global bounds that aren’t true.

Checks that the field types (in a struct def’n) or argument types (in an enum def’n) are well-formed, meaning that they do not require any constraints not declared in the struct definition itself. For example, this definition would be illegal:

Detect when an object unsafe trait is referring to itself in one of its associated items. When this is done, suggest using Self instead.

In a type definition, we check that to ensure that the types of the fields are well-formed.

Checks where-clauses and inline bounds that are declared on def_id.

Returns whether receiver_ty would be considered a valid receiver type for self_ty. If arbitrary_self_types is enabled, receiver_ty must transitively deref to self_ty, possibly through a *const/mut T raw pointer. If the feature is not enabled, the requirements are more strict: receiver_ty must implement Receiver and directly implement Deref<Target = self_ty>.