Split back out unused_lifetimes -> redundant_lifetimes
This commit is contained in:
parent
ee78eab62b
commit
a9e262a32d
12 changed files with 52 additions and 26 deletions
|
@ -2118,8 +2118,8 @@ fn lint_redundant_lifetimes<'tcx>(
|
|||
&& outlives_env.free_region_map().sub_free_regions(tcx, victim, candidate)
|
||||
{
|
||||
shadowed.insert(victim);
|
||||
tcx.emit_spanned_lint(
|
||||
rustc_lint_defs::builtin::UNUSED_LIFETIMES,
|
||||
tcx.emit_node_span_lint(
|
||||
rustc_lint_defs::builtin::REDUNDANT_LIFETIMES,
|
||||
tcx.local_def_id_to_hir_id(def_id.expect_local()),
|
||||
tcx.def_span(def_id),
|
||||
RedundantLifetimeArgsLint { candidate, victim },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue