Skip to main content

Module autoderef

Module autoderef 

Source

Re-exportsยง

use rustc_infer::infer::InferCtxt; ๐Ÿ”’
use rustc_infer::traits::PredicateObligations; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_middle::ty::TypeVisitableExt; ๐Ÿ”’
use rustc_middle::ty::Unnormalized; ๐Ÿ”’
use rustc_span::def_id::LOCAL_CRATE; ๐Ÿ”’
use rustc_span::def_id::LocalDefId; ๐Ÿ”’
use rustc_span::ErrorGuaranteed; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_structures::Limit; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCtxt; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::diagnostics::AutoDerefReachedRecursionLimit; ๐Ÿ”’
use crate::traits; ๐Ÿ”’
use crate::traits::query::evaluate_obligation::InferCtxtExt; ๐Ÿ”’

Structsยง

Autoderef
Recursively dereference a type, considering both built-in dereferences (*) and the Deref trait. Although called Autoderef it can be configured to use the Receiver trait instead of the Deref trait.
AutoderefSnapshot ๐Ÿ”’

Enumsยง

AutoderefKind

Functionsยง

report_autoderef_recursion_limit_error