Skip to content

Commit 646d72a

Browse files
authored
Correct report_elidable_impl_lifetimes comment following #13752 (#13771)
Tiny change to make `report_elidable_impl_lifetimes`'s doc comment consistent with #13752. (cc: @samueltardieu) --- changelog: none
2 parents 66b15ad + 4a342df commit 646d72a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/lifetimes.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,7 @@ fn report_extra_impl_lifetimes<'tcx>(cx: &LateContext<'tcx>, impl_: &'tcx Impl<'
643643

644644
// An `impl` lifetime is elidable if it satisfies the following conditions:
645645
// - It is used exactly once.
646-
// - That single use is not in a bounded type or `GenericArgs` in a `WherePredicate`. (Note that
647-
// `GenericArgs` are different from `GenericParam`s.)
646+
// - That single use is not in a `WherePredicate`.
648647
fn report_elidable_impl_lifetimes<'tcx>(
649648
cx: &LateContext<'tcx>,
650649
impl_: &'tcx Impl<'_>,

0 commit comments

Comments
 (0)