[][src]Module rustc::ty::adjustment

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Structs

AdjustmentInternal

Represents coercing a value to a different type of value.

CoerceUnsizedInfoInternal

Information for CoerceUnsized impls, storing information we have computed about the coercion.

OverloadedDerefInternal

An overloaded autoderef step, representing a Deref(Mut)::deref(_mut) call, with the signature &'a T -> &'a U or &'a mut T -> &'a mut U. The target type is U in both cases, with the region and mutability being those shared by both the receiver and the returned reference.

Enums

AdjustInternal
AllowTwoPhaseInternal

At least for initial deployment, we want to limit two-phase borrows to only a few specific cases. Right now, those are mostly "things that desugar" into method calls:

AutoBorrowInternal
AutoBorrowMutabilityInternal
CustomCoerceUnsizedInternal
PointerCastInternal