This commit is contained in:
Michael Goulet
2025-07-04 18:09:11 +00:00
parent 0ad96c1e1f
commit dc8cac8e8d
11 changed files with 16 additions and 20 deletions

View File

@@ -2338,7 +2338,7 @@ fn lint_redundant_lifetimes<'tcx>(
lifetimes.push(ty::Region::new_late_param(tcx, owner_id.to_def_id(), kind));
}
}
lifetimes.retain(|candidate| candidate.has_name(tcx));
lifetimes.retain(|candidate| candidate.is_named(tcx));
// Keep track of lifetimes which have already been replaced with other lifetimes.
// This makes sure that if `'a = 'b = 'c`, we don't say `'c` should be replaced by