struct FunctionItemRefChecker<'a, 'tcx> {
    tcx: TyCtxt<'tcx>,
    body: &'a Body<'tcx>,
}

Fields

tcx: TyCtxt<'tcx>body: &'a Body<'tcx>

Implementations

Emits a lint for function reference arguments bound by fmt::Pointer in calls to the function defined by def_id with the substitutions substs_ref.

If the given predicate is the trait fmt::Pointer, returns the bound parameter type.

If a type is a reference or raw pointer to the anonymous type of a function definition, returns that function’s DefId and SubstsRef.

Trait Implementations

Emits a lint for function reference arguments bound by fmt::Pointer or passed to transmute. This only handles arguments in calls outside macro expansions to avoid double counting function references formatted as pointers by macros.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes