Skip to content

Commit 95b83f9

Browse files
committed
Correct function name.
1 parent 0ff8c65 commit 95b83f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_typeck/src/coherence/orphan.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub(crate) fn orphan_check_impl(
3030

3131
let ret = do_orphan_check_impl(tcx, trait_ref, impl_def_id);
3232
if tcx.trait_is_auto(trait_ref.def_id) {
33-
lint_auto_trait_impls(tcx, trait_ref, impl_def_id);
33+
lint_auto_trait_impl(tcx, trait_ref, impl_def_id);
3434
}
3535

3636
ret
@@ -332,7 +332,7 @@ fn emit_orphan_check_error<'tcx>(
332332

333333
/// Lint impls of auto traits if they are likely to have
334334
/// unsound or surprising effects on auto impls.
335-
fn lint_auto_trait_impls<'tcx>(
335+
fn lint_auto_trait_impl<'tcx>(
336336
tcx: TyCtxt<'tcx>,
337337
trait_ref: ty::TraitRef<'tcx>,
338338
impl_def_id: LocalDefId,

0 commit comments

Comments
 (0)