Skip to content

Commit 6876c94

Browse files
Fix documentation lint failures
1 parent 270b776 commit 6876c94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/error_reporting/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
17721772

17731773
// In some (most?) cases cause.body_id points to actual body, but in some cases
17741774
// it's an actual definition. According to the comments (e.g. in
1775-
// librustc_typeck/check/compare_method.rs:compare_predicate_entailment) the latter
1775+
// librustc_typeck/check/compare_method.rs:compare_predicates_and_trait_impl_trait_tys) the latter
17761776
// is relied upon by some other code. This might (or might not) need cleanup.
17771777
let body_owner_def_id =
17781778
self.tcx.hir().opt_local_def_id(cause.body_id).unwrap_or_else(|| {

compiler/rustc_typeck/src/check/compare_method.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ pub(crate) fn compare_ty_impl<'tcx>(
13071307
})();
13081308
}
13091309

1310-
/// The equivalent of [compare_predicate_entailment], but for associated types
1310+
/// The equivalent of [compare_predicates_and_trait_impl_trait_tys], but for associated types
13111311
/// instead of associated functions.
13121312
fn compare_type_predicate_entailment<'tcx>(
13131313
tcx: TyCtxt<'tcx>,

0 commit comments

Comments
 (0)