Correct report_elidable_impl_lifetimes comment following #13752
This commit is contained in:
parent
66b15ad853
commit
4a342df09b
1 changed files with 1 additions and 2 deletions
|
|
@ -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<'_>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue