Re-use logic for adding a suggestion when a lifetime bound is missing on an impl trait

This commit is contained in:
Oli Scherer 2021-10-05 13:32:03 +00:00
parent be399635a2
commit 888ba509ea
6 changed files with 150 additions and 91 deletions

View file

@ -2235,8 +2235,7 @@ pub enum TyKind<'hir> {
///
/// Type parameters may be stored in each `PathSegment`.
Path(QPath<'hir>),
/// An opaque type definition itself. This is currently only used for the
/// `opaque type Foo: Trait` item that `impl Trait` in desugars to.
/// An opaque type definition itself. This is only used for `impl Trait`.
///
/// The generic argument list contains the lifetimes (and in the future
/// possibly parameters) that are actually bound on the `impl Trait`.