From 95b83f9cac0a91aa3a215656accc8721de18db94 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Wed, 22 Jun 2022 21:19:12 +0200 Subject: [PATCH] Correct function name. --- compiler/rustc_typeck/src/coherence/orphan.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_typeck/src/coherence/orphan.rs b/compiler/rustc_typeck/src/coherence/orphan.rs index 90121313b0c4..8a3d0568f429 100644 --- a/compiler/rustc_typeck/src/coherence/orphan.rs +++ b/compiler/rustc_typeck/src/coherence/orphan.rs @@ -30,7 +30,7 @@ pub(crate) fn orphan_check_impl( let ret = do_orphan_check_impl(tcx, trait_ref, impl_def_id); if tcx.trait_is_auto(trait_ref.def_id) { - lint_auto_trait_impls(tcx, trait_ref, impl_def_id); + lint_auto_trait_impl(tcx, trait_ref, impl_def_id); } ret @@ -332,7 +332,7 @@ fn emit_orphan_check_error<'tcx>( /// Lint impls of auto traits if they are likely to have /// unsound or surprising effects on auto impls. -fn lint_auto_trait_impls<'tcx>( +fn lint_auto_trait_impl<'tcx>( tcx: TyCtxt<'tcx>, trait_ref: ty::TraitRef<'tcx>, impl_def_id: LocalDefId,