Skip to content

Commit 54a396a

Browse files
committed
Auto merge of #133961 - lcnr:borrowck-cleanup, r=jackh726
cleanup region handling: add `LateParamRegionKind` The second commit is to enable a split between `BoundRegionKind` and `LateParamRegionKind`, by avoiding `BoundRegionKind` where it isn't necessary. The third comment then adds `LateParamRegionKind` to avoid having the same late-param region for separate bound regions. This fixes #124021. r? `@compiler-errors`
2 parents 550d36d + f415510 commit 54a396a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ fn check_fn_args<'cx, 'tcx: 'cx>(
475475
.def_id,
476476
),
477477
ty::ReBound(_, r) => r.kind.get_id(),
478-
ty::ReLateParam(r) => r.bound_region.get_id(),
478+
ty::ReLateParam(r) => r.kind.get_id(),
479479
ty::ReStatic
480480
| ty::ReVar(_)
481481
| ty::RePlaceholder(_)

0 commit comments

Comments
 (0)