Skip to main content

Module orphan

Module orphan 

Source
Expand description

Orphan checker: every impl either implements a trait defined in this crate or pertains to a type defined in this crate.

Re-exportsยง

use rustc_data_structures::fx::FxIndexSet; ๐Ÿ”’
use rustc_errors::ErrorGuaranteed; ๐Ÿ”’
use rustc_infer::infer::DefineOpaqueTypes; ๐Ÿ”’
use rustc_infer::infer::InferCtxt; ๐Ÿ”’
use rustc_infer::infer::TyCtxtInferExt; ๐Ÿ”’
use rustc_lint_defs::builtin::UNCOVERED_PARAM_IN_PROJECTION; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_middle::ty::TypeSuperVisitable; ๐Ÿ”’
use rustc_middle::ty::TypeVisitable; ๐Ÿ”’
use rustc_middle::ty::TypeVisitableExt; ๐Ÿ”’
use rustc_middle::ty::TypeVisitor; ๐Ÿ”’
use rustc_middle::ty::TypingMode; ๐Ÿ”’
use rustc_middle::ty::Unnormalized; ๐Ÿ”’
use rustc_span::def_id::DefId; ๐Ÿ”’
use rustc_span::def_id::LocalDefId; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use rustc_span::span_bug; ๐Ÿ”’
use rustc_trait_selection::traits; ๐Ÿ”’
use rustc_trait_selection::traits::IsFirstInputType; ๐Ÿ”’
use rustc_trait_selection::traits::OrphanCheckErr; ๐Ÿ”’
use rustc_trait_selection::traits::OrphanCheckMode; ๐Ÿ”’
use rustc_trait_selection::traits::UncoveredTyParams; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::diagnostics; ๐Ÿ”’

Structsยง

UncoveredTyParamCollector ๐Ÿ”’

Functionsยง

emit_orphan_check_error ๐Ÿ”’
orphan_check ๐Ÿ”’
Checks the coherence orphan rules.
orphan_check_impl ๐Ÿ”’