Skip to content

Commit 4a342df

Browse files
committed
Correct report_elidable_impl_lifetimes comment following #13752
1 parent 66b15ad commit 4a342df

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)