We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f64b7 commit 5390cf3Copy full SHA for 5390cf3
src/librustc/middle/resolve_lifetime.rs
@@ -2567,6 +2567,13 @@ fn insert_late_bound_lifetimes(
2567
// - do not appear in the where-clauses
2568
// - are not implicitly captured by `impl Trait`
2569
for param in &generics.params {
2570
+ match param.kind {
2571
+ hir::GenericParamKind::Lifetime { .. } => { /* fall through */ }
2572
+
2573
+ // Types are not late-bound.
2574
+ hir::GenericParamKind::Type { .. } => continue,
2575
+ }
2576
2577
let lt_name = hir::LifetimeName::Param(param.name.modern());
2578
// appears in the where clauses? early-bound.
2579
if appears_in_where_clause.regions.contains(<_name) {
0 commit comments