diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-06-22 07:04:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-22 07:04:05 +0900 |
| commit | cb3322ae3d8a14e37e64e1246778466bca9fd19e (patch) | |
| tree | 1016e36a0dee9923ae8eec146c446b83316e4623 | |
| parent | b887da1cb27ef90c9c54c5a9d005e3be3d866dc8 (diff) | |
| parent | 5ed149504180e04ba81e308b07c2d33af1b7af49 (diff) | |
| download | rust-cb3322ae3d8a14e37e64e1246778466bca9fd19e.tar.gz rust-cb3322ae3d8a14e37e64e1246778466bca9fd19e.zip | |
Rollup merge of #98344 - spastorino:remove-misleading-comment, r=oli-obk
This comment is out dated and misleading, the arm is about TAITs r? ```@oli-obk``` ```@oli-obk``` unsure if you want to add a different comment of some sort. ```@bors``` rollup=always
| -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, |
