about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-06-22 21:19:12 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-06-22 21:19:12 +0200
commit95b83f9cac0a91aa3a215656accc8721de18db94 (patch)
treecf613d41830d476ade4b8d735ec1edfba81bd602
parent0ff8c65d6f6f1613d22dcd3525ab29f39e7e6519 (diff)
downloadrust-95b83f9cac0a91aa3a215656accc8721de18db94.tar.gz
rust-95b83f9cac0a91aa3a215656accc8721de18db94.zip
Correct function name.
-rw-r--r--compiler/rustc_typeck/src/coherence/orphan.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_typeck/src/coherence/orphan.rs b/compiler/rustc_typeck/src/coherence/orphan.rs
index 90121313b0c..8a3d0568f42 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,