Skip to content

Commit

Permalink
Correct report_elidable_impl_lifetimes comment following #13752 (#1…
Browse files Browse the repository at this point in the history
…3771)

Tiny change to make `report_elidable_impl_lifetimes`'s doc comment
consistent with #13752. (cc: @samueltardieu)

---

changelog: none
  • Loading branch information
blyxyas authored Dec 2, 2024
2 parents 66b15ad + 4a342df commit 646d72a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clippy_lints/src/lifetimes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,7 @@ fn report_extra_impl_lifetimes<'tcx>(cx: &LateContext<'tcx>, impl_: &'tcx Impl<'

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

0 comments on commit 646d72a

Please sign in to comment.