Skip to content

Commit

Permalink
Rollup merge of rust-lang#98344 - spastorino:remove-misleading-commen…
Browse files Browse the repository at this point in the history
…t, 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
  • Loading branch information
Dylan-DPC authored Jun 21, 2022
2 parents 2b1ce20 + 5ed1495 commit 9bf095d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_resolve/src/late/lifetimes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
..
Expand All @@ -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,
Expand Down

0 comments on commit 9bf095d

Please sign in to comment.