Skip to main content

Module fn_ctxt

Module fn_ctxt 

Source

Re-exportsยง

use std::cell::Cell; ๐Ÿ”’
use std::cell::RefCell; ๐Ÿ”’
use std::ops::Deref; ๐Ÿ”’
use rustc_data_structures::thin_vec::ThinVec; ๐Ÿ”’
use rustc_data_structures::thin_vec::thin_vec; ๐Ÿ”’
use rustc_errors::DiagCtxtHandle; ๐Ÿ”’
use rustc_hir::def_id::DefId; ๐Ÿ”’
use rustc_hir::def_id::LocalDefId; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::HirId; ๐Ÿ”’
use rustc_hir::ItemLocalMap; ๐Ÿ”’
use rustc_hir_analysis::hir_ty_lowering::HirTyLowerer; ๐Ÿ”’
use rustc_hir_analysis::hir_ty_lowering::InherentAssocCandidate; ๐Ÿ”’
use rustc_hir_analysis::hir_ty_lowering::RegionInferReason; ๐Ÿ”’
use rustc_infer::infer; ๐Ÿ”’
use rustc_infer::infer::RegionVariableOrigin; ๐Ÿ”’
use rustc_infer::traits::DynCompatibilityViolation; ๐Ÿ”’
use rustc_infer::traits::Obligation; ๐Ÿ”’
use rustc_infer::traits::TraitErrors; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::CantBeErased; ๐Ÿ”’
use rustc_middle::ty::Const; ๐Ÿ”’
use rustc_middle::ty::Flags; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_middle::ty::TypeVisitableExt; ๐Ÿ”’
use rustc_middle::ty::TypingMode; ๐Ÿ”’
use rustc_middle::ty::Unnormalized; ๐Ÿ”’
use rustc_session::Session; ๐Ÿ”’
use rustc_span::def_id::LocalModId; ๐Ÿ”’
use rustc_span; ๐Ÿ”’
use rustc_span::DUMMY_SP; ๐Ÿ”’
use rustc_span::ErrorGuaranteed; ๐Ÿ”’
use rustc_span::Ident; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_trait_selection::error_reporting::TypeErrCtxt; ๐Ÿ”’
use rustc_trait_selection::traits; ๐Ÿ”’
use rustc_trait_selection::traits::FulfillmentError; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCause; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCauseCode; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCtxt; ๐Ÿ”’
use crate::coercion::CoerceMany; ๐Ÿ”’
use crate::CoroutineTypes; ๐Ÿ”’
use crate::Diverges; ๐Ÿ”’
use crate::EnclosingBreakables; ๐Ÿ”’
use crate::TypeckRootCtxt; ๐Ÿ”’

Modulesยง

_impl ๐Ÿ”’
adjust_fulfillment_errors ๐Ÿ”’
arg_matrix ๐Ÿ”’
checks ๐Ÿ”’
inspect_obligations ๐Ÿ”’
A utility module to inspect currently ambiguous obligations in the current context.
suggestions ๐Ÿ”’

Structsยง

FnCtxt ๐Ÿ”’
The FnCtxt stores type-checking context needed to type-check bodies of functions, closures, and consts, including performing type inference with InferCtxt.
LoweredTy ๐Ÿ”’
The ty representation of a user-provided type. Depending on the use-site we want to either use the unnormalized or the normalized form of this type.

Enumsยง

UseSubtyping ๐Ÿ”’
Whatever to use subtyping or not when inspecting obligations