Function rustc_monomorphize::collector::should_codegen_locally
source · fn should_codegen_locally<'tcx>(
tcx: TyCtxt<'tcx>,
instance: &Instance<'tcx>
) -> boolExpand description
Returns true if we should codegen an instance in the local crate, or returns false if we
can just link to the upstream crate and therefore don’t need a mono item.