diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2022-06-21 12:40:32 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-06-21 12:43:58 -0300 |
| commit | 5ed149504180e04ba81e308b07c2d33af1b7af49 (patch) | |
| tree | 6af7d21c2b2d10a836c57bebcdc51b5665d10e6e | |
| parent | a25b1315ee968146a5b206a8f3c670c5b307ebfe (diff) | |
| download | rust-5ed149504180e04ba81e308b07c2d33af1b7af49.tar.gz rust-5ed149504180e04ba81e308b07c2d33af1b7af49.zip | |
This comment is out dated and misleading
Arms are about TAIT and RPIT, as the variants clearly show.
| -rw-r--r-- | compiler/rustc_resolve/src/late/lifetimes.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/late/lifetimes.rs b/compiler/rustc_resolve/src/late/lifetimes.rs index 447f4174c10..55574b83607 100644 --- a/compiler/rustc_resolve/src/late/lifetimes.rs +++ b/compiler/rustc_resolve/src/late/lifetimes.rs @@ -846,8 +846,6 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> { // the opaque_ty generics let opaque_ty = self.tcx.hir().item(item_id); let (generics, bounds) = match opaque_ty.kind { - // Named opaque `impl Trait` types are reached via `TyKind::Path`. - // This arm is for `impl Trait` in the types of statics, constants and locals. hir::ItemKind::OpaqueTy(hir::OpaqueTy { origin: hir::OpaqueTyOrigin::TyAlias, .. @@ -866,7 +864,6 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> { return; } - // RPIT (return position impl trait) hir::ItemKind::OpaqueTy(hir::OpaqueTy { origin: hir::OpaqueTyOrigin::FnReturn(..) | hir::OpaqueTyOrigin::AsyncFn(..), ref generics, |
