Skip to main content

Module codegen

Module codegen 

Source

Re-exportsยง

use rustc_infer::infer::TyCtxtInferExt; ๐Ÿ”’
use rustc_middle::traits::CodegenObligationError; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::PseudoCanonicalInput; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_middle::ty::TypeVisitableExt; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use rustc_trait_selection::error_reporting::InferCtxtErrorExt; ๐Ÿ”’
use rustc_trait_selection::traits::FulfillmentErrorCode; ๐Ÿ”’
use rustc_trait_selection::traits::ImplSource; ๐Ÿ”’
use rustc_trait_selection::traits::Obligation; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCause; ๐Ÿ”’
use rustc_trait_selection::traits::ObligationCtxt; ๐Ÿ”’
use rustc_trait_selection::traits::SelectionContext; ๐Ÿ”’
use rustc_trait_selection::traits::SelectionError; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’

Functionsยง

codegen_select_candidate ๐Ÿ”’
Attempts to resolve an obligation to an ImplSource. The result is a shallow ImplSource resolution, meaning that we do not (necessarily) resolve all nested obligations on the impl. Note that type check should guarantee to us that all nested obligations could be resolved if we wanted to.