Skip to main content

Module check

Module check 

Source

Re-exportsยง

use std::cell::RefCell; ๐Ÿ”’
use rustc_attr_ir::lang_items::LangItem; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::def::DefKind; ๐Ÿ”’
use rustc_hir_analysis::check::check_function_signature; ๐Ÿ”’
use rustc_infer::infer::RegionVariableOrigin; ๐Ÿ”’
use rustc_infer::traits::WellFormedLoc; ๐Ÿ”’
use rustc_lint_defs::builtin::UNSAFE_PANIC_HANDLERS; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::Binder; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_span::def_id::LocalDefId; ๐Ÿ”’
use rustc_span::sym; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCause; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCauseCode; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::coercion::CoerceMany; ๐Ÿ”’
use crate::diagnostics::UnsafePanicHandlers; ๐Ÿ”’
use crate::gather_locals::GatherLocalsVisitor; ๐Ÿ”’
use crate::CoroutineTypes; ๐Ÿ”’
use crate::Diverges; ๐Ÿ”’
use crate::FnCtxt; ๐Ÿ”’

Functionsยง

check_fn ๐Ÿ”’
Helper used for fns and closures. Does the grungy work of checking a function body and returns the function context used for that purpose, since in the case of a fn item there is still a bit more to do.
check_lang_start_fn ๐Ÿ”’
check_panic_info_fn ๐Ÿ”’