Skip to content

Commit 9bf095d

Browse files
authored
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
2 parents 2b1ce20 + 5ed1495 commit 9bf095d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_resolve/src/late/lifetimes.rs

-3
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,6 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
846846
// the opaque_ty generics
847847
let opaque_ty = self.tcx.hir().item(item_id);
848848
let (generics, bounds) = match opaque_ty.kind {
849-
// Named opaque `impl Trait` types are reached via `TyKind::Path`.
850-
// This arm is for `impl Trait` in the types of statics, constants and locals.
851849
hir::ItemKind::OpaqueTy(hir::OpaqueTy {
852850
origin: hir::OpaqueTyOrigin::TyAlias,
853851
..
@@ -866,7 +864,6 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
866864

867865
return;
868866
}
869-
// RPIT (return position impl trait)
870867
hir::ItemKind::OpaqueTy(hir::OpaqueTy {
871868
origin: hir::OpaqueTyOrigin::FnReturn(..) | hir::OpaqueTyOrigin::AsyncFn(..),
872869
ref generics,

0 commit comments

Comments
 (0)